@font-face {
  font-family: 'Press Start 2P';
  src: url('/assets/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Tilt Neon';
  src: url('/assets/fonts/TiltNeon-Regular-VariableFont_XROT,YROT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --neon-green: #8eff5c;
  --neon-pink: #ff3399;
  --neon-cyan: #39fff0;
  --neon-pink-soft: #ff8acc;
  --onion-bg: #0a0a14;
  --glass-border: rgba(136, 136, 255, 0.18);
  --soft-glow-pink: 0 0 2px rgba(255, 102, 204, 0.55);
  --soft-glow-green: 0 0 3px rgba(142, 255, 92, 0.55);
  --soft-glow-cyan: 0 0 3px rgba(57, 255, 240, 0.55);
}

body {
  margin: 0;
  /* OLED-at-2am vignette: subtle radial warmth at top, cool at bottom-right */
  background:
    radial-gradient(ellipse at 50% -10%, rgba(60, 30, 80, 0.35), transparent 55%),
    radial-gradient(ellipse at 100% 110%, rgba(20, 50, 70, 0.3), transparent 55%),
    var(--onion-bg);
  background-attachment: fixed;
  font-family: 'Tilt Neon', system-ui, sans-serif;
  color: #c6fcff;
  overflow-x: hidden;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* Default headings (used by not-found.html and any bare h1/h2). */
h1 {
  font-size: 2rem;
  color: var(--neon-green);
  text-shadow: var(--soft-glow-green);
  margin-bottom: 0.7em;
  letter-spacing: 0.04em;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  color: var(--neon-pink-soft);
  text-shadow: var(--soft-glow-pink);
  margin-bottom: 0.7em;
  font-weight: 600;
}

/* Subtler scanlines — barely-there CRT memory */
.glitch-bg {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.onion-glow {
  color: var(--neon-pink-soft);
  text-shadow: var(--soft-glow-pink);
  font-weight: 600;
}

.onion-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: #8888ff;
}


/* ============================================ */
/* so called life — algorithm-free social network UI */
/* ============================================ */

.net-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(6px);
}
.net-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.net-brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.net-brand-mark {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
  color: var(--neon-green);
  text-shadow: 0 0 4px rgba(142, 255, 92, 0.55);
  letter-spacing: 0.04em;
}
.net-brand-tag {
  font-size: 0.85rem;
  color: #8888ff;
  margin-top: 0.4em;
}
.net-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: #8888ff;
}
.net-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: netPulse 1.8s ease-in-out infinite;
}
@keyframes netPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* Layout */
.net-main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .net-main {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.net-feed-col { min-width: 0; }
.net-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Composer */
.composer {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 2.5rem;
}
.composer-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.75rem;
}
.composer-label {
  font-size: 0.85rem;
  color: #8888ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.composer-handle {
  flex: 0 0 auto;
  width: 12em;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  outline: none;
}
.composer-handle:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 4px rgba(57, 255, 240, 0.25);
}
.composer-body {
  width: 100%;
  min-height: 7em;
  resize: vertical;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: #c6fcff;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0.75em;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.composer-body:focus {
  border-color: var(--neon-pink-soft);
  box-shadow: 0 0 5px rgba(255, 138, 204, 0.2);
}
.composer-body::placeholder { color: #6a6aa0; }

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 1em;
  flex-wrap: wrap;
}
.composer-count {
  font-size: 0.85rem;
  color: #8888ff;
  font-variant-numeric: tabular-nums;
}
.composer-count.near { color: var(--neon-pink); }
.composer-count.over { color: #ff6666; text-shadow: 0 0 2px rgba(255, 68, 68, 0.5); }

.composer-btn {
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: transparent;
  color: var(--neon-green);
  border: 1px solid rgba(142, 255, 92, 0.7);
  padding: 0.65em 1.5em;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.composer-btn:hover {
  background: rgba(142, 255, 92, 0.08);
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(142, 255, 92, 0.35);
}
.composer-btn:active { transform: translateY(1px); }

.composer-fine {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #6a6aa0;
  font-style: italic;
}

/* Feed header */
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--glass-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.feed-title {
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-shadow: var(--soft-glow-cyan);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feed-sub {
  font-size: 0.8rem;
  color: #8888ff;
}

/* Feed */
.feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Post card */
.post {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-left: 2px solid rgba(255, 138, 204, 0.55);
  border-radius: 8px;
  padding: 1.3rem 1.5rem;
  animation: postIn 0.4s ease-out;
  transition: border-left-color 0.3s ease, background 0.3s ease;
}
.post:hover {
  border-left-color: var(--neon-pink-soft);
  background: rgba(255, 255, 255, 0.035);
}
@keyframes postIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.5rem;
}
.post-handle {
  font-weight: bold;
  font-size: 1rem;
}
.post-time {
  font-size: 0.8rem;
  color: #8888ff;
  font-variant-numeric: tabular-nums;
}
.post-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #c6fcff;
}
.post-body .post-link {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.post-foot {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(136, 136, 255, 0.15);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.post-act {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #9a9ad0;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.3em 0.8em;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.25s ease;
}
.post-act:hover {
  border-color: rgba(57, 255, 240, 0.5);
  color: var(--neon-cyan);
  background: rgba(57, 255, 240, 0.05);
}
.post-note-count {
  margin-left: 0.3em;
  font-variant-numeric: tabular-nums;
  color: var(--neon-pink);
}
.post-del:hover {
  border-color: #ff4444;
  color: #ff4444;
}
.post-meta {
  margin-left: auto;
  font-size: 0.75rem;
  color: #6a6aa0;
  font-style: italic;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--glass-border);
  border-radius: 6px;
  color: #8888ff;
}

/* Sidebar cards */
.side-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
}
.side-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--neon-green);
  text-shadow: 0 0 2px rgba(142, 255, 92, 0.5);
  margin: 0 0 0.9rem;
  letter-spacing: 0.05em;
}
.side-body {
  margin: 0;
  font-size: 0.9rem;
  color: #c6fcff;
  line-height: 1.45;
}
.side-card-danger {
  border-color: rgba(255, 68, 68, 0.35);
}
.side-card-danger .side-title {
  color: #ff8888;
  text-shadow: 0 0 2px rgba(255, 68, 68, 0.5);
}
.side-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: transparent;
  color: #ff8888;
  border: 1px solid rgba(255, 68, 68, 0.55);
  padding: 0.7em;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.side-btn:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: rgba(255, 68, 68, 0.8);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

/* Stats list */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.4em 0;
  border-bottom: 1px dashed rgba(136, 136, 255, 0.15);
  font-size: 0.85rem;
}
.stats li:last-child { border-bottom: none; }
.stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  color: #8888ff;
  text-align: right;
}

/* ============================================ */
/* so called life — auth, profile, account, banners */
/* ============================================ */

/* Nav */
.net-nav {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.net-nav-link, .net-nav-btn-link {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  padding: 0.2em 0;
  transition: 0.15s;
}
.net-nav-link:hover { border-bottom-color: var(--neon-cyan); text-shadow: 0 0 3px rgba(57, 255, 240, 0.5); }
.net-nav-btn-link {
  border: 1px solid rgba(255, 51, 153, 0.7);
  color: var(--neon-pink-soft);
  padding: 0.4em 1em;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: 0.25s ease;
}
.net-nav-btn-link:hover {
  background: rgba(255, 51, 153, 0.1);
  border-color: var(--neon-pink);
  box-shadow: 0 0 8px rgba(255, 51, 153, 0.35);
}
.net-nav-form { margin: 0; display: inline; }
.net-nav-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #8888ff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.25em 0.7em;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.15s;
}
.net-nav-btn:hover { border-color: #ff6666; color: #ff6666; }

/* Verification banner */
.net-verify-banner {
  background: rgba(255, 102, 102, 0.08);
  border-top: 1px solid rgba(255, 102, 102, 0.35);
  border-bottom: 1px solid rgba(255, 102, 102, 0.35);
  color: #ff9999;
  text-align: center;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  flex-wrap: wrap;
}
.net-banner-btn {
  background: transparent;
  border: 1px solid #ff6666;
  color: #ff6666;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  cursor: pointer;
}
.net-banner-btn:hover {
  background: #ff6666;
  color: var(--onion-bg);
  box-shadow: 0 0 10px #ff6666;
}
.inline-form { display: inline; margin: 0; }

/* Flash messages */
.flash {
  max-width: 800px;
  margin: 1em auto 0;
  padding: 0.7em 1em;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  position: relative;
  z-index: 3;
}
.flash-ok   { background: rgba(142, 255, 92, 0.08); border: 1px solid rgba(142, 255, 92, 0.35); color: var(--neon-green); }
.flash-warn { background: rgba(255, 102, 102, 0.08); border: 1px solid rgba(255, 102, 102, 0.35); color: #ff9999; }
.flash-err  { background: rgba(255, 68, 68, 0.12); border: 1px solid rgba(255, 68, 68, 0.45); color: #ff4444; }

/* Narrow layout for auth / account pages */
.net-narrow {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.net-page-title {
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--neon-green);
  text-shadow: var(--soft-glow-green);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.net-page-sub {
  color: #8888ff;
  text-align: center;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}
.net-back { margin: 0 0 1rem; font-size: 0.9rem; }

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.5rem;
}
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-size: 0.9rem;
  color: #8888ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6em 0.8em;
  border-radius: 4px;
  outline: none;
}
.auth-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 4px rgba(57, 255, 240, 0.25);
}
.auth-hint {
  font-size: 0.78rem;
  color: #6a6aa0;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
.auth-submit { margin-top: 0.5rem; align-self: stretch; }
.auth-alt {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #8888ff;
}

/* Honeypot — hidden offscreen, never to actual humans. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.form-error {
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.45);
  color: #ff6666;
  padding: 0.6em 1em;
  margin: 0 0 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Inline link style used in narrow pages and footer */
.link-inline {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--neon-cyan);
  transition: text-shadow 0.25s ease;
}
.link-inline:hover { text-shadow: 0 0 3px rgba(57, 255, 240, 0.55); }

/* Composer locked state */
.composer-locked {
  text-align: center;
  color: #8888ff;
}
.composer-locked p { margin: 0 0 1rem; }
.composer-locked .composer-btn { display: inline-block; }
.composer-as {
  font-weight: bold;
  font-size: 1rem;
}

/* "Noted" state when the current user has noted a post */
.post-act.is-noted {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: rgba(255, 51, 153, 0.08);
}
.post-act-disabled {
  border: 1px solid var(--glass-border);
  color: #555588;
  padding: 0.25em 0.7em;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: not-allowed;
}

/* Load-more */
.feed-more {
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Profile */
.profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--neon-green);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.profile-handle {
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #c6fcff;
  letter-spacing: 0.04em;
}
.profile-meta {
  font-size: 0.85rem;
  color: #8888ff;
  margin: 0 0 0.75rem;
}
.profile-bio {
  margin: 0;
  color: #c6fcff;
  font-size: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.profile-bio-empty { color: #6a6aa0; font-style: italic; }

/* Account */
.account-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.account-h2 {
  font-family: 'Tilt Neon', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--neon-cyan);
  text-shadow: var(--soft-glow-cyan);
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-danger {
  border-color: rgba(255, 68, 68, 0.35);
}
.account-danger .account-h2 {
  color: #ff8888;
  text-shadow: 0 0 2px rgba(255, 68, 68, 0.5);
}
.account-danger code {
  background: rgba(0,0,0,0.3);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: #ffb3d9;
}

/* Permalink post — slightly emphasized */
.post-permalink {
  border-left-width: 3px;
  border-left-color: rgba(57, 255, 240, 0.6);
}