/* Généré par scripts/build-css-core.py — ne pas éditer à la main. */
/* Source : main.css sans les règles des fichiers assets/css/zones/*.css */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
img, video, audio { max-width: 100%; height: auto; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.5;
  overflow-x: hidden;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float-orb 18s var(--ease) infinite alternate;
}
.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%; left: -5%;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: 10%; right: -8%;
  animation-delay: -6s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  top: 40%; left: 35%;
  animation-delay: -12s;
  opacity: 0.25;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes float-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.08); }
}
.ambient-lightning {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.lightning-bolt {
  position: absolute;
  width: clamp(72px, 12vw, 140px);
  height: clamp(160px, 28vh, 320px);
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--bolt-angle, 0deg)) scale(var(--bolt-scale, 1));
  opacity: 0;
  color: var(--bolt-color, #5eb8ff);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--bolt-color) 70%, transparent))
          drop-shadow(0 0 28px color-mix(in srgb, var(--bolt-color) 45%, transparent));
}
.lightning-bolt--blue { --bolt-color: #5eb8ff; }
.lightning-bolt--green { --bolt-color: #4ade9a; }
.lightning-bolt svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lightning-bolt path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.lightning-bolt path.lightning-branch {
  stroke-width: 1.4;
  opacity: 0.75;
}
.lightning-bolt.is-active {
  animation: lightning-strike 0.62s ease-out forwards;
}
.lightning-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    ellipse 80% 55% at var(--flash-x, 50%) var(--flash-y, 40%),
    color-mix(in srgb, var(--flash-color, #5eb8ff) 22%, transparent) 0%,
    transparent 68%
  );
}
.lightning-flash.is-active {
  animation: lightning-flash-glow 0.5s ease-out forwards;
}
@keyframes lightning-strike {
  0% { opacity: 0; }
  6% { opacity: 1; }
  14% { opacity: 0.25; }
  20% { opacity: 0.92; }
  28% { opacity: 0.15; }
  34% { opacity: 0.7; }
  100% { opacity: 0; }
}
@keyframes lightning-flash-glow {
  0% { opacity: 0; }
  12% { opacity: 0.14; }
  28% { opacity: 0.05; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-lightning { display: none; }
}
.site-header,
.eclats-strip,
.global-player,
.site-update-banner,
.site-poll,
.site-main,
.site-footer,
.mobile-dock {
  position: relative;
  z-index: 1;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(0.85rem, 2vw, 1.5rem);
  margin: 0.75rem var(--gutter) 0;
  max-width: min(var(--container-max), calc(100% - 2 * var(--gutter)));
  min-width: 0;
  width: calc(100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: visible;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand:hover .brand-name-shine { animation-duration: 2.5s; }
.brand-mark {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease);
}
.brand-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 125, 255, 0.45) 0%, rgba(94, 234, 212, 0.2) 45%, transparent 70%);
  filter: blur(6px);
  animation: brand-aura-pulse 3.2s ease-in-out infinite;
}
.brand-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
}
.brand-ring--a {
  inset: -2px;
  border-color: rgba(199, 125, 255, 0.55);
  box-shadow: 0 0 12px rgba(199, 125, 255, 0.35);
  animation: brand-orbit-a 7s linear infinite;
}
.brand-ring--b {
  inset: 2px;
  border-color: rgba(94, 234, 212, 0.45);
  border-style: dashed;
  animation: brand-orbit-b 11s linear infinite reverse;
}
.brand-sphere {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-2),
    var(--gold),
    var(--accent-3),
    #7c6cf0,
    var(--accent)
  );
  box-shadow:
    0 0 24px rgba(199, 125, 255, 0.55),
    inset 0 -4px 12px rgba(0, 0, 0, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.15);
  animation: brand-sphere-spin 10s linear infinite;
}
.brand-shine {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  mask: radial-gradient(circle, #000 58%, transparent 62%);
  -webkit-mask: radial-gradient(circle, #000 58%, transparent 62%);
}
.brand-shine::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 58%
  );
  animation: brand-shine-sweep 4.5s ease-in-out infinite;
}
@keyframes brand-aura-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes brand-orbit-a {
  from { transform: rotate(0deg) rotateX(62deg); }
  to { transform: rotate(360deg) rotateX(62deg); }
}
@keyframes brand-orbit-b {
  from { transform: rotate(0deg) rotateY(58deg); }
  to { transform: rotate(360deg) rotateY(58deg); }
}
@keyframes brand-sphere-spin {
  to { transform: rotate(360deg); }
}
@keyframes brand-shine-sweep {
  0%, 72% { transform: translateX(-80%) rotate(25deg); opacity: 0; }
  78% { opacity: 1; }
  100% { transform: translateX(80%) rotate(25deg); opacity: 0; }
}
@keyframes brand-text-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes brand-domain-pulse {
  0%, 100% { opacity: 0.75; text-shadow: 0 0 8px rgba(94, 234, 212, 0.25); }
  50% { opacity: 1; text-shadow: 0 0 14px rgba(94, 234, 212, 0.55); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.brand-text { min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-name-shine {
  display: inline-block;
  background: linear-gradient(
    100deg,
    #f0eef8 0%,
    #e8d4ff 18%,
    var(--accent-3) 38%,
    var(--gold) 52%,
    var(--accent-2) 68%,
    #f0eef8 85%,
    #e8d4ff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-text-shimmer 6s linear infinite;
}
.brand-domain {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.12rem;
}
.brand-domain-glow {
  display: inline-block;
  color: var(--accent-3);
  animation: brand-domain-pulse 2.8s ease-in-out infinite;
}
.visually-hidden {
  /* Texte accessible aux lecteurs d'écran, masqué visuellement */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-search-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}
.header-search-wrap[open] {
  z-index: 60;
}
.header-search-wrap > summary {
  list-style: none;
  cursor: pointer;
}
.header-search-wrap > summary::-webkit-details-marker {
  display: none;
}
.btn-header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0.45rem;
  color: var(--text-muted);
}
.btn-header-search:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.header-search-wrap[open] > .btn-header-search {
  color: var(--accent-3);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35);
}
.btn-header-search-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}
.header-search-panel {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  z-index: 10070;
  width: min(18.5rem, calc(100vw - 2 * var(--gutter) - 1rem));
  padding: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: var(--radius-sm);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.header-search-wrap[open] .header-search-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.header-search-form:focus-within {
  outline: none;
}
.header-search-input {
  flex: 1;
  min-width: 0;
  width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 0.35rem 0.5rem 0.55rem;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-input:focus { outline: none; }
.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}
.header-search-submit svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.header-search-submit:hover { transform: scale(1.05); }
.main-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: center;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(199,125,255,0.2), rgba(255,107,157,0.15));
}
@media (min-width: 1025px) {
  .site-header {
    gap: 0.55rem;
    padding-left: clamp(0.65rem, 1.2vw, 1rem);
    padding-right: clamp(0.65rem, 1.2vw, 1rem);
  }
  .main-nav {
    gap: 0.02rem;
  }
  .main-nav .nav-link {
    padding: 0.34rem 0.4rem;
    font-size: 0.72rem;
    letter-spacing: -0.015em;
  }
}
@media (min-width: 1280px) {
  .main-nav .nav-link {
    padding: 0.36rem 0.48rem;
    font-size: 0.75rem;
  }
}
@media (min-width: 1440px) {
  .main-nav {
    gap: 0.05rem;
  }
  .main-nav .nav-link {
    padding: 0.38rem 0.52rem;
    font-size: 0.78rem;
  }
}
.nav-link--mobile-only { display: none; }
.main-nav-search { display: none; }
.main-nav-search-form { margin: 0; }
.main-nav-search-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.main-nav-search-form:focus-within .main-nav-search-row {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.12);
}
.main-nav-search-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--accent-3);
  flex-shrink: 0;
}
.main-nav-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.main-nav-search-input::placeholder { color: var(--text-muted); }
.main-nav-search-input:focus { outline: none; }
.main-nav-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.main-nav-search-submit svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}
.main-nav-mobile-actions {
  display: none;
  flex-direction: column;
  gap: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}
.notifications-wrap {
  position: relative;
  z-index: 2;
}
.btn-notifications,
.btn-messages,
.btn-admin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  z-index: 2;
  color: var(--text-muted);
  text-decoration: none;
}
.btn-messages:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.btn-messages.is-active {
  color: var(--accent-3);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35);
}
.btn-admin {
  color: var(--gold);
}
.btn-admin:hover {
  color: #fde68a;
  background: rgba(244, 199, 107, 0.12);
}
.logout-form {
  display: inline-flex;
  margin: 0;
}
.header-actions .btn-logout-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0.55rem 0.65rem;
  color: #ff9eb5;
}
.header-actions .btn-logout-header:hover {
  color: #ffc0d0;
  background: rgba(255, 107, 157, 0.1);
}
.header-actions .btn-logout-header .logout-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-admin.is-active {
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(244, 199, 107, 0.45);
  background: rgba(244, 199, 107, 0.1);
}
.notifications-icon,
.messages-icon,
.moderation-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}
.moderation-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg-deep, var(--ams-inverse));
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-deep, var(--ams-inverse));
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.moderation-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}
.moderation-badge[hidden] { display: none !important; }
.messages-badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-deep, var(--ams-inverse));
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.messages-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}
.messages-badge[hidden] { display: none !important; }
.notifications-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 0 2px var(--bg-deep, var(--ams-inverse));
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.notifications-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}
.notifications-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--ams-input-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  animation: gp-overlay-in 0.2s var(--ease);
}
.notifications-backdrop[hidden] {
  display: none !important;
}
body.notifications-panel-open {
  overflow: hidden;
}
.notifications-panel {
  position: fixed;
  z-index: 10050;
  width: min(22rem, calc(100vw - 1rem));
  max-height: min(26rem, calc(100vh - 5rem));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ams-surface-panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: notifications-panel-in 0.22s var(--ease);
}
.notifications-panel[hidden] { display: none !important; }
@keyframes notifications-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.notifications-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.notifications-mark-read {
  border: none;
  background: none;
  color: var(--accent-3);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.25rem;
  white-space: nowrap;
}
.notifications-mark-read:hover { text-decoration: underline; }
.notifications-list {
  overflow-y: auto;
  padding: 0.35rem 0;
}
.notifications-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.notifications-item:hover { background: rgba(255, 255, 255, 0.05); }
.notifications-item-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-3);
  margin-bottom: 0.25rem;
}
.notifications-item--like .notifications-item-type { color: var(--accent-2); }
.notifications-item--follow .notifications-item-type { color: var(--gold); }
.notifications-item--music .notifications-item-type { color: #a78bfa; }
.notifications-item--following_post .notifications-item-type { color: var(--gold); }
.notifications-item-msg {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
}
.notifications-item-time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.notifications-empty,
.notifications-loading {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.notifications-push {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.notifications-push[hidden] { display: none !important; }
.notifications-push-status {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.notifications-push-status[hidden] { display: none !important; }
.notifications-push-status.is-muted { color: var(--text-muted); }
.notifications-push-status.is-success { color: #86efac; }
.notifications-push-status.is-error { color: #fca5a5; }
.notifications-push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.notifications-push-actions .btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: var(--ams-inverse);
  background: linear-gradient(135deg, var(--accent-3), var(--gold));
  box-shadow: 0 4px 24px rgba(94, 234, 212, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(94, 234, 212, 0.4);
  transform: translateY(-1px);
}
.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-icon { padding: 0.55rem; }
.btn-icon svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary svg { width: 16px; height: 16px; fill: currentColor; }
.btn-publish {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}
.btn-publish-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.45) 0%, transparent 70%);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-publish-icon {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: var(--ams-inverse);
  stroke-width: 2.25;
}
.btn-publish:hover .btn-publish-glow {
  opacity: 1;
  transform: scale(1.08);
}
.btn-publish:hover {
  transform: translateY(-1px) scale(1.04);
}
.btn-publish:active {
  transform: scale(0.96);
}
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-danger {
  color: #fff;
  background: rgba(230, 57, 70, 0.9);
  border: 1px solid rgba(255, 107, 157, 0.5);
}
.btn-danger:hover {
  background: #e63946;
  transform: translateY(-1px);
}
.btn-menu { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.site-main {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 6rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: min(70vh, 720px);
  padding: 2rem 0 3rem;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.hero-lead--compact {
  max-width: min(36rem, 100%);
}
.hero--creator {
  margin-bottom: 2rem;
}
.hero--creator h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  margin-bottom: 0.85rem;
}
.hero--creator .hero-lead {
  margin-bottom: 1.35rem;
}
.content-types {
  position: relative;
  margin-bottom: 4rem;
  padding: 2.5rem 0 1rem;
  overflow: hidden;
}
.content-types--compact {
  margin-bottom: 2.5rem;
  padding: 0;
  overflow: visible;
}
.content-types-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.content-types-compact-head .section-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}
.content-types-compact-feed {
  font-size: 0.88rem;
  white-space: nowrap;
}
.content-types-chips {
  justify-content: flex-start;
  gap: 0.45rem;
}
.content-type-chip {
  text-decoration: none;
  display: inline-block;
  font-size: 0.82rem;
  padding: 0.38rem 0.9rem;
  border-color: color-mix(in srgb, var(--type-accent, var(--border)) 35%, var(--border));
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.content-type-chip:hover {
  color: var(--text);
  border-color: var(--type-accent, var(--accent));
  background: color-mix(in srgb, var(--type-accent, var(--accent)) 14%, transparent);
}
.content-type-chip--novel { --type-accent: #c9a0ff; }
.content-type-chip--poetry { --type-accent: #ff8ab8; }
.content-type-chip--image { --type-accent: #5eead4; }
.content-type-chip--music { --type-accent: #f4c76b; }
.content-type-chip--video { --type-accent: #7eb8ff; }
.content-type-chip--text { --type-accent: #c4b5fd; }
.content-type-chip--news { --type-accent: #ffe566; }
.content-types-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ct-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: ct-orb-float 14s var(--ease) infinite alternate;
}
.ct-orb-1 {
  width: 280px;
  height: 280px;
  top: -20%;
  left: -5%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.ct-orb-2 {
  width: 220px;
  height: 220px;
  top: 30%;
  right: -8%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  animation-delay: -5s;
}
.ct-orb-3 {
  width: 180px;
  height: 180px;
  bottom: -10%;
  left: 35%;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  animation-delay: -9s;
  opacity: 0.25;
}
@keyframes ct-orb-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.12); }
}
.content-types .section-title,
.content-types-lead,
.content-types .type-grid {
  position: relative;
  z-index: 1;
}
.section-title--shine {
  background: linear-gradient(
    100deg,
    var(--text) 0%,
    #e8d4ff 25%,
    var(--accent-3) 45%,
    var(--gold) 55%,
    var(--text) 75%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-text-shimmer 7s linear infinite;
}
.content-types-lead {
  margin: -0.75rem 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
}
.type-grid {
  display: grid;
  gap: 1.15rem;
}
.content-types .type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1025px) {
  .content-types .type-grid {
    width: min(100%, 56rem);
    gap: 1.25rem;
  }
}
@media (max-width: 767px) {
  .content-types .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 28rem);
    gap: clamp(0.65rem, 2.5vw, 0.85rem);
  }
}
.type-card {
  --type-accent: var(--accent);
  --type-accent-2: var(--accent-2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 20, 32, 0.65);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  animation: type-card-enter 0.75s var(--ease) backwards;
  animation-delay: calc(var(--i) * 90ms + 0.15s);
}
@keyframes type-card-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.type-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--type-angle, 0deg),
    transparent 0deg,
    var(--type-accent) 80deg,
    var(--type-accent-2) 160deg,
    transparent 240deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  animation: type-border-spin 6s linear infinite;
  pointer-events: none;
}
@property --type-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes type-border-spin {
  to { --type-angle: 360deg; }
}
.type-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: type-shine-sweep 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
  pointer-events: none;
}
@keyframes type-shine-sweep {
  0%, 68% { transform: translateX(-120%); opacity: 0; }
  75% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.type-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px color-mix(in srgb, var(--type-accent) 25%, transparent);
}
.type-card:hover .type-card-border { opacity: 0.9; }
.type-card:hover .type-icon-wrap { transform: translateY(-3px) scale(1.06); }
.type-card:hover .type-card-cta { opacity: 1; transform: translateX(0); }
.type-card--novel { --type-accent: #c9a0ff; --type-accent-2: #9b7ee8; }
.type-card--poetry { --type-accent: #ff8ab8; --type-accent-2: #c77dff; }
.type-card--image { --type-accent: #5eead4; --type-accent-2: #3db8a8; }
.type-card--music { --type-accent: #f4c76b; --type-accent-2: #ff6b9d; }
.type-card--video { --type-accent: #7eb8ff; --type-accent-2: #5eead4; }
.type-card--text { --type-accent: #c4b5fd; --type-accent-2: #a78bfa; }
.type-card--news { --type-accent: #ffe566; --type-accent-2: #ff9f43; }
.type-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease);
  animation: type-icon-float 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}
@keyframes type-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.type-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--type-accent), var(--type-accent-2), var(--type-accent));
  animation: brand-sphere-spin 8s linear infinite;
  opacity: 0.85;
}
.type-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--type-accent) 50%, transparent);
  animation: type-icon-pulse 2.5s ease-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
@keyframes type-icon-pulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}
.type-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ams-scrim-heavy);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--type-accent) 35%, transparent);
}
.type-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--type-accent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--type-accent) 60%, transparent));
}
.type-card--music .type-icon svg { animation: type-music-bob 1.2s ease-in-out infinite; }
.type-card--news .type-icon svg { animation: type-bolt-flash 2s ease-in-out infinite; }
.type-card--video .type-icon svg { transform-origin: center; animation: type-play-pulse 2.5s ease-in-out infinite; }
@keyframes type-music-bob {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes type-bolt-flash {
  0%, 88%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--type-accent)); }
  92% { opacity: 0.5; filter: drop-shadow(0 0 14px var(--type-accent-2)); }
}
@keyframes type-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.type-card-body { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.type-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.type-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.type-card-cta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--type-accent);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.feed-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 1rem;
}
.mosaic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.mosaic-card:hover { transform: scale(1.02); }
.mosaic-card:nth-child(1) { grid-row: span 2; }
.mosaic-card:nth-child(4) { grid-column: span 2; }
.mosaic-card header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.mosaic-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.mosaic-card.g1 .mosaic-body { background: linear-gradient(135deg, #4a1942, #7b2cbf); border-radius: var(--radius-sm); }
.mosaic-card.g2 .mosaic-body { background: linear-gradient(135deg, #1b4332, #40916c); border-radius: var(--radius-sm); }
.mosaic-card.g3 .mosaic-body { background: linear-gradient(135deg, #1d3557, #e63946); border-radius: var(--radius-sm); }
.mosaic-card.g4 .mosaic-body { background: linear-gradient(135deg, #5c4d7d, #ff6b9d); border-radius: var(--radius-sm); }
.mosaic-card footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.type-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.likes { color: var(--accent-2); }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.avatar.sm,
.avatar-img.sm { width: 32px; height: 32px; }
.avatar img,
img.avatar,
img.avatar-img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: transparent;
  flex-shrink: 0;
}
img.avatar-img[width][height] {
  max-width: 100%;
}
.grid-caption .avatar.sm,
.grid-caption .avatar-img.sm {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
}
.g1 { background: linear-gradient(135deg, #4a1942, #7b2cbf) !important; }
.g2 { background: linear-gradient(135deg, #1b4332, #40916c) !important; }
.g3 { background: linear-gradient(135deg, #1d3557, #e63946) !important; }
.g4 { background: linear-gradient(135deg, #5c4d7d, #ff6b9d) !important; }
.g5 { background: linear-gradient(135deg, #3d2c5c, #c77dff) !important; }
.g6 { background: linear-gradient(135deg, #2d3142, #5eead4) !important; }
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  width: 100%;
  justify-content: center;
}
.waveform::before {
  content: "";
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
}
.waveform,
.waveform-lg {
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.15) 4px,
    rgba(255,255,255,0.15) 6px
  );
  mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}
.waveform-lg { height: 60px; }
.play-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  font-size: 1rem;
}
.play-lg { width: 56px; height: 56px; }
.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.page-header .btn { margin-top: 1rem; }
.page-sub { color: var(--text-muted); margin: 0; }
.search-page-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.search-page-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search-page-input {
  flex: 1;
  min-width: min(100%, 220px);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.search-page-input:focus {
  outline: none;
  border-color: var(--accent-3);
}
.search-type-chips { margin-bottom: 1.5rem; }
.search-section { margin-bottom: 2.5rem; }
.search-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.search-count {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.search-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.search-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.search-user-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.06);
}
.search-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.search-user-info strong { font-size: 0.95rem; }
.search-user-info > span:nth-child(2) {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.search-user-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.search-tag-list {
  margin: 0;
}
.profile-grid .grid-post-manage:not(.grid-post-manage--menu):not(.grid-post-manage--pin-only) {
  top: 0.18rem;
  right: 0.18rem;
  gap: 0.12rem;
  max-width: 52%;
}
.profile-grid .grid-post-manage:not(.grid-post-manage--menu):not(.grid-post-manage--pin-only) .grid-post-manage-btn {
  padding: 0.1rem 0.28rem;
  font-size: 0.65rem;
  border-radius: 3px;
  opacity: 0.9;
}
.profile-grid .grid-post:hover .grid-post-manage-btn,
.profile-grid .grid-post-manage:focus-within .grid-post-manage-btn {
  opacity: 1;
}
.reddit-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}
.sidebar-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.sidebar-card h3 { margin: 0 0 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.community-list { list-style: none; padding: 0; margin: 0; }
.community-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.community-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.community-list a.is-active,
.community-list a:hover { color: var(--accent-3); }
.community-list span { font-size: 0.75rem; color: var(--text-muted); }
.trending ol { margin: 0; padding-left: 1.2rem; color: var(--accent); font-size: 0.85rem; }
.thread-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  animation: fade-up 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i) * 60ms);
  transition: border-color 0.25s;
}
.thread-card:hover { border-color: rgba(199, 125, 255, 0.3); }
.vote-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 40px;
}
.vote-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.15rem;
  transition: color 0.2s, transform 0.2s;
}
.vote-btn.up:hover { color: var(--accent-3); transform: translateY(-2px); }
.vote-btn.down:hover { color: var(--accent-2); }
.vote-count { font-size: 0.8rem; font-weight: 700; }
.thread-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.community-tag { color: var(--accent-3); font-weight: 600; }
.content-tag {
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(199, 125, 255, 0.2);
  color: var(--accent);
}
.thread-body h2 { margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600; }
.thread-body h2 a { color: inherit; text-decoration: none; }
.thread-body h2 a:hover { color: var(--accent-3); }
.thread-actions button {
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.thread-actions button:hover { color: var(--text); }
.chat-input input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
}
.profile-hero { margin-bottom: 2rem; }
.feed-hero.profile-hero {
  margin-bottom: 2rem;
}
.profile-cover {
  height: 200px;
  border-radius: var(--radius);
  margin-bottom: -60px;
}
.profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 1rem;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--gold));
  flex-shrink: 0;
}
.profile-intro { flex: 1; min-width: 200px; }
.profile-intro h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.25rem;
}
.profile-handle { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.profile-bio { max-width: 480px; margin: 0 0 1rem; color: var(--text-muted); }
.profile-actions { display: flex; gap: 0.5rem; }
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  width: 100%;
  font-size: 0.9rem;
}
.profile-stats > li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}
.profile-stats strong { color: var(--gold); }
.profile-stat--total strong { color: var(--gold); }
.profile-stat--novels strong { color: var(--accent); }
.profile-stat--likes strong { color: var(--accent-2); }
.profile-stat--comments strong { color: var(--accent-3); }
.profile-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.is-active { color: var(--text); border-bottom-color: var(--accent-3); }
.profile-grid .grid-media { border-radius: var(--radius-sm); }
.site-footer {
  text-align: center;
  padding: 1.75rem var(--gutter) 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.site-footer-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.site-footer-stats-sep {
  opacity: 0.45;
  user-select: none;
}
.site-footer-copy {
  margin: 0;
}
.footer-note { opacity: 0.6; }
.mobile-bottom-chrome {
  display: none;
}
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 100;
  padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom));
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.125rem;
}
.dock-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  border-radius: var(--radius-sm);
}
.dock-link.is-active {
  color: var(--accent-3);
  background: rgba(94, 234, 212, 0.08);
}
.dock-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin-bottom: 0.12rem;
  opacity: 0.55;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.dock-link.is-active .dock-icon { opacity: 1; }
.dock-link[data-nav="accueil"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3 3 10v11h6v-6h6v6h6V10z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3 3 10v11h6v-6h6v6h6V10z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="fil"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="romans"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h9l7 7v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm8 1.4L18.6 12H13V5.4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h9l7 7v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm8 1.4L18.6 12H13V5.4z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="discussions"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zm-6.5 9A3.5 3.5 0 1 0 12 20a3.5 3.5 0 0 0-6.5-7zm13 0A3.5 3.5 0 1 1 12 20a3.5 3.5 0 0 1 6.5-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zm-6.5 9A3.5 3.5 0 1 0 12 20a3.5 3.5 0 0 0-6.5-7zm13 0A3.5 3.5 0 1 1 12 20a3.5 3.5 0 0 1 6.5-7z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="forum"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9l-4 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm2 5h12v1.5H6V9zm0 2.5h12V13H6v-1.5zm0 2.5h8V15H6v-1.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9l-4 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm2 5h12v1.5H6V9zm0 2.5h12V13H6v-1.5zm0 2.5h8V15H6v-1.5z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="collab"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16 11c1.66 0 3-1.34 3-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M16 11c1.66 0 3-1.34 3-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="profil"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5z'/%3E%3C/svg%3E");
}
.dock-link[data-nav="expositions"] .dock-icon {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zm0 3a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm0 4.75a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zm0 3a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11zm0 4.75a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5z'/%3E%3C/svg%3E");
}
.dock-link--publish {
  position: relative;
  color: var(--accent-3);
}
.dock-link--publish-blocked {
  color: var(--text-muted);
}
.dock-publish-glow {
  position: absolute;
  top: 0.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.42) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.dock-link--publish .dock-icon--publish {
  position: relative;
  z-index: 1;
  opacity: 1;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 5h2v4h4v2h-4v4h-2v-4H7v-2h4V7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 5h2v4h4v2h-4v4h-2v-4H7v-2h4V7z'/%3E%3C/svg%3E");
}
.dock-link--publish-blocked .dock-icon--publish {
  opacity: 0.65;
}
.dock-link--publish.is-active {
  color: var(--accent-3);
  background: rgba(94, 234, 212, 0.08);
}
.dock-label {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}
.dock-link--messages {
  position: relative;
}
.dock-messages-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin-bottom: 0.12rem;
  fill: currentColor;
  opacity: 0.55;
}
.dock-link--messages.is-active .dock-messages-icon { opacity: 1; }
.dock-messages-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.2rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 0.95rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-deep);
}
.mobile-toolbar {
  display: none;
}
.mobile-quick-bar {
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.1rem;
  padding: 0;
  min-height: 0;
  box-sizing: border-box;
}
.mobile-quick-btn {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
  min-height: 0;
  padding: 0.15rem 0.05rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-quick-btn:hover,
.mobile-quick-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.mobile-quick-btn--publish {
  color: var(--accent-3);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
}
.mobile-quick-btn--accent {
  color: var(--accent);
}
.mobile-quick-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  flex-shrink: 0;
}
.mobile-quick-btn--publish .mobile-quick-icon {
  stroke: currentColor;
  fill: none;
}
.mobile-quick-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.mobile-quick-badge {
  position: absolute;
  top: 0.35rem;
  right: calc(50% - 0.85rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff3b5c;
  box-shadow: 0 0 0 2px var(--bg-deep);
}
.mobile-quick-search {
  display: none;
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--mobile-bottom-chrome-h) + 0.5rem + env(safe-area-inset-bottom));
  z-index: 102;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.mobile-quick-search:not([hidden]) {
  display: block;
}
.mobile-quick-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.mobile-quick-search-input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: var(--touch-min);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}
.layout-auth [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade-down"] { transform: translateY(-16px); }
[data-animate="fade-down"].is-visible { transform: translateY(0); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding: 0.75rem 0 1.5rem;
    gap: 1.25rem;
  }
  .hero-visual {
    min-height: 240px;
    gap: 1rem;
  }
  .hero h1 {
    margin-bottom: 0.75rem;
  }
  .hero-lead {
    margin-bottom: 1.25rem;
  }
  .hero-metrics {
    width: 100%;
    max-width: 20rem;
  }
}
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.25rem 0 2rem;
  }
  .hero-visual { min-height: 320px; order: -1; }
  .hero-lead { font-size: 1rem; }
  .feed-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .mosaic-card:nth-child(1) { grid-row: span 1; }
  .mosaic-card:nth-child(4) { grid-column: span 1; }
  .reddit-layout,
  .collab-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .reddit-layout:not(.page-discussions-layout) .reddit-sidebar {
    display: block;
    order: -1;
  }
  .reddit-sidebar .sidebar-card.trending { display: none; }
  /* Discussions : barre sticky + sidebar desktop → zones/discussions.css */
  body:not(.page-discussions) .community-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    overflow: visible;
    padding-bottom: 0;
  }
  body:not(.page-discussions) .community-list li {
    width: 100%;
    max-width: 15rem;
    margin: 0;
  }
  body:not(.page-discussions) .community-list a {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-align: center;
    white-space: normal;
  }
  body:not(.page-discussions) .community-list a.is-active {
    background: rgba(199, 125, 255, 0.2);
    border-color: var(--accent);
  }
  body:not(.page-discussions) .community-list span { display: none; }
  .collab-sidebar { order: -1; }
  .workspace-panels { grid-template-columns: 1fr; }
  .workspace-header { flex-wrap: wrap; gap: 1rem; }
  .post-view { padding: 1.5rem; }
  .post-view-title { font-size: clamp(1.5rem, 4vw, 2rem); }
}
@media (max-width: 1024px) {
  .site-header {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem auto;
    padding: 0.65rem 0.75rem;
    width: calc(100% - 1rem);
    max-width: none;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
  }
  .brand-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-search-wrap--desktop {
    display: none;
  }
  .brand-domain { display: none; }
  .brand-name {
    font-size: clamp(0.92rem, 3.4vw, 1.1rem);
    line-height: 1.15;
  }
  .brand-mark { width: 36px; height: 36px; }
  .brand-sphere,
  .brand-shine { width: 30px; height: 30px; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 2;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav-search {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav-search-row {
    width: 100%;
  }
  .btn-menu { position: relative; z-index: 3; flex-shrink: 0; }
  .main-nav-mobile-actions {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }
  .main-nav-mobile-actions--lead {
    border-top: none;
    border-bottom: 1px solid var(--border);
    margin-top: 0;
    margin-bottom: 0.35rem;
    padding-top: 0;
    padding-bottom: 0.35rem;
  }
  .main-nav .nav-link--mobile-only {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .nav-link--logout {
    color: #ff9eb5;
  }
  .nav-link--logout:hover {
    color: #ffc0d0;
    background: rgba(255, 107, 157, 0.1);
  }
  .logout-form {
    display: contents;
  }
  .logout-form--nav {
    display: block;
    width: 100%;
  }
  .logout-form button.nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
  }
  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: var(--touch-min);
  }
  .header-actions {
    position: relative;
    z-index: 5;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
  }
  .header-actions .header-user {
    display: none;
  }
  .header-actions .btn-ghost:not(.btn-menu):not(.btn-admin):not(.btn-notifications):not(.btn-messages):not(.btn-logout-header) { display: none; }
  .header-actions .btn-notifications,
  .header-actions .btn-messages {
    display: inline-flex;
  }
  .header-actions .btn-admin,
  .header-actions .btn-logout-header {
    display: inline-flex;
  }
  .header-actions .btn-logout-header {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0.55rem 0.65rem;
    color: #ff9eb5;
  }
  .header-actions .btn-logout-header:hover {
    color: #ffc0d0;
    background: rgba(255, 107, 157, 0.1);
  }
  .header-actions .btn-logout-header .logout-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
  }
  .nav-link--admin {
    color: var(--gold);
    font-weight: 600;
  }
  .nav-link--admin:hover {
    color: #fde68a;
    background: rgba(244, 199, 107, 0.1);
  }
  .nav-link--admin.is-active {
    color: #fde68a;
    background: rgba(244, 199, 107, 0.12);
    box-shadow: inset 0 0 0 1px rgba(244, 199, 107, 0.35);
  }
  .header-actions .btn-notifications,
  .header-actions .btn-publish { display: none !important; }
  .header-actions .btn-publish {
    width: var(--touch-min);
    height: var(--touch-min);
    min-width: var(--touch-min);
    padding: 0;
  }
  .header-actions .btn-publish-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .btn-menu {
    display: flex;
    position: relative;
    z-index: 6;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .btn-menu.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .btn-menu.is-active span:nth-child(2) {
    opacity: 0;
  }
  .btn-menu.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .btn-menu span {
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .mobile-dock { display: none; }
  .mobile-bottom-chrome {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  }
  .mobile-bottom-chrome .mobile-toolbar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: var(--mobile-toolbar-h);
    padding: 0.15rem var(--gutter);
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
  }
  .mobile-bottom-chrome .mobile-quick-bar {
    display: flex;
    flex: 1 1 50%;
    min-width: 0;
    border-bottom: none;
  }
  .mobile-bottom-chrome .mobile-dock {
    display: grid;
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    border-top: none;
    padding-bottom: 0.4rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .site-main {
    padding-top: 1rem;
    padding-bottom: calc(var(--mobile-bottom-chrome-h) + 1.25rem + env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-top: 1.25rem;
    padding-bottom: calc(var(--mobile-bottom-chrome-h) + 1.5rem + env(safe-area-inset-bottom));
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .content-types { padding: 1.5rem var(--gutter) 0.5rem; }
  .content-types .section-title,
  .content-types-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .type-card { padding: clamp(0.85rem, 2.5vw, 1.1rem) clamp(0.75rem, 2vw, 1rem); }
  .type-icon-wrap { width: 48px; height: 48px; }
  .type-icon { width: 38px; height: 38px; }
  .type-card-cta { opacity: 1; transform: none; }
  .feed-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .instagram-grid {
    --grid-thumb-min: clamp(96px, 30vw, 172px);
    --grid-thumb-gap: clamp(0.35rem, 1.8vw, 0.65rem);
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-thumb-min), 1fr));
  }
  .instagram-grid .grid-media {
    aspect-ratio: var(--grid-media-ratio, 1);
    width: 100%;
    max-width: 100%;
    min-height: 0;
    border-radius: clamp(6px, 1.5vw, var(--radius-sm));
  }
  .instagram-grid .grid-caption {
    padding: 0.35rem 0.1rem 0;
    gap: 0.35rem;
    font-size: clamp(0.65rem, 2.6vw, 0.78rem);
  }
  .instagram-grid .grid-caption .avatar.sm,
  .instagram-grid .grid-caption .avatar-img.sm {
    width: clamp(26px, 7.5vw, 32px);
    height: clamp(26px, 7.5vw, 32px);
  }
  .instagram-grid .grid-caption span {
    font-size: clamp(0.62rem, 2.4vw, 0.72rem);
  }
  .instagram-grid .grid-snippet--prose,
  .instagram-grid .poetry-snippet {
    font-size: clamp(0.75rem, 2.8vw, 0.95rem);
    padding: 0.65rem;
  }
  .instagram-grid .grid-snippet--overlay {
    font-size: clamp(0.62rem, 2.2vw, 0.72rem);
    top: 0;
    bottom: auto;
    padding: 0.35rem 0.45rem 1.2rem;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 55%,
      transparent 100%
    );
    -webkit-line-clamp: 2;
  }
  .instagram-grid .gp-grid-play {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    padding: 0.4rem 0.65rem;
  }
  .profile-grid .grid-post-manage:not(.grid-post-manage--menu):not(.grid-post-manage--pin-only) {
    top: 0.15rem;
    right: 0.15rem;
    max-width: 56%;
    gap: 0.1rem;
  }
  .story-grid.story-grid--novels {
    --grid-thumb-min: clamp(104px, 42vw, 156px);
  }
  .story-grid--novels .story-card-cover {
    --grid-media-ratio: 2 / 3;
    width: 100%;
  }
  .feed-toolbar { flex-direction: column; align-items: stretch; }
  .filter-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
    gap: 0.4rem;
    width: 100%;
  }
  .filter-chips .chip {
    flex-shrink: 0;
    scroll-snap-align: unset;
  }
  .search-type-chips,
  .page-search .filter-chips {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  .search-type-chips .chip,
  .page-search .filter-chips .chip {
    width: 100%;
    max-width: 15rem;
    text-align: center;
    box-sizing: border-box;
  }
  /* Profil : onglets sticky horizontaux → zones/profile.css */
  body:not(.page-discussions) .community-list {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }
  .profile-cover { height: 140px; margin-bottom: -48px; }
  .profile-avatar { width: 88px; height: 88px; }
  .profile-intro h1 { font-size: 1.5rem; }
  .profile-stats {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
  .profile-actions { flex-wrap: wrap; }
  .profile-actions .btn { flex: 1; min-width: 120px; }
  .chat-input { flex-wrap: wrap; }
  .chat-input .btn { width: 100%; }
  .collab-create-form input,
  .collab-join-form input { font-size: 16px; }
  .auth-form input { font-size: 16px; }
  .alert { margin-left: var(--gutter); margin-right: var(--gutter); }
}
@media (min-width: 600px) and (max-width: 1024px) {
  .instagram-grid:not(.preview-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
    --grid-thumb-min: clamp(100px, 42vw, 168px);
  }
  .story-grid.story-grid--novels:not(.preview-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 22rem);
    margin-left: auto;
    margin-right: auto;
    --grid-thumb-min: clamp(100px, 38vw, 150px);
  }
}
@media (max-width: 480px) {
  .orb-1 { width: 280px; height: 280px; }
  .orb-2 { width: 220px; height: 220px; }
  .floating-cards { display: none; }
  .hero-visual { min-height: 300px; }
  .sphere-stack {
    --orbit-r-outer: 118px;
    --orbit-r-mid: 108px;
    --orbit-r-inner: 98px;
    width: min(300px, 94vw);
    height: min(300px, 94vw);
  }
  .hero-metrics { width: 100%; }
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-metric:nth-child(2)::after {
    display: none;
  }
  .hero-metric { padding: 0.9rem 0.5rem; }
  .hero-metric-value { font-size: 1.5rem; }
  .hero-metric-label { font-size: 0.65rem; }
  .orbit-sphere--rose { width: 62px; height: 62px; }
  .orbit-sphere--mint { width: 54px; height: 54px; }
  .orbit-sphere--gold { width: 58px; height: 58px; }
  .orbit-sphere-glyph { font-size: 1.1rem; }
  .instagram-grid {
    --grid-thumb-min: clamp(92px, 44vw, 168px);
  }
  .profile-grid .grid-post-manage:not(.grid-post-manage--menu):not(.grid-post-manage--pin-only) {
    top: 0.12rem;
    right: 0.12rem;
    max-width: 58%;
    gap: 0.1rem;
  }
  .story-grid.story-grid--novels {
    --grid-thumb-min: clamp(100px, 46vw, 150px);
  }
  .grid-caption span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-view { padding: 1rem; border-radius: var(--radius-sm); }
  .post-actions-bar { flex-wrap: wrap; gap: 0.75rem; }
  .comment-item { flex-direction: column; }
  .publish-card { padding: 1.25rem; }
  .auth-card { padding: 1.5rem 1.25rem; }
  .workspace-meta { font-size: 0.75rem; }
  .presence-avatars .avatar { width: 28px; height: 28px; }
  .profile-edit-visuals { margin: 0 0.85rem 1rem; }
  .profile-edit-cover-preview { min-height: 110px; }
  .profile-edit-avatar-ring { width: 96px; height: 96px; }
  .profile-edit-avatar-wrap { margin-top: -2.5rem; }
  .profile-upload-overlay { opacity: 1; background: rgba(8, 10, 18, 0.62); }
  .profile-edit-actions { flex-direction: column-reverse; }
  .profile-edit-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .profile-grid .grid-post-manage:not(.grid-post-manage--menu):not(.grid-post-manage--pin-only) {
    max-width: 62%;
  }
  .brand-mark { width: 32px; height: 32px; }
  .brand-sphere,
  .brand-shine { width: 26px; height: 26px; }
  .brand { gap: 0.35rem; }
  .brand-name { font-size: clamp(0.86rem, 4.2vw, 0.95rem); }
  .content-types .type-grid,
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(100%, 100%);
  }
  .type-card {
    padding: 0.75rem 0.55rem;
  }
  .type-card h3 {
    font-size: clamp(0.82rem, 3.8vw, 0.95rem);
  }
  .type-card p {
    font-size: clamp(0.68rem, 3.2vw, 0.75rem);
  }
  .type-icon-wrap {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
  }
  .type-icon {
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
  }
  .instagram-grid {
    --grid-thumb-min: clamp(88px, 46vw, 160px);
  }
  .story-grid.story-grid--novels {
    --grid-thumb-min: clamp(96px, 48vw, 148px);
  }
}
@media (min-width: 1280px) {
  :root { --container-max: 1320px; }
  .instagram-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .home-posts-grid.preview-grid {
    --home-preview-cell: clamp(300px, 30vw, 400px);
    grid-template-columns: repeat(3, var(--home-preview-cell));
  }
}
@media (min-width: 1536px) {
  :root { --container-max: 1440px; }
  .site-header {
    margin-left: auto;
    margin-right: auto;
    max-width: min(var(--container-max), calc(100% - 2 * var(--gutter)));
    width: calc(100% - 2 * var(--gutter));
  }
  .hero { gap: 4rem; }
}
@media (hover: none) and (pointer: coarse) {
  .btn, .chip, .dock-link, .tab, .space-item {
    min-height: var(--touch-min);
  }
}
@media (max-width: 1024px) {
  .grid-snippet--overlay {
    top: 0;
    bottom: auto;
    z-index: 4;
    padding: 0.4rem 0.5rem 1.25rem;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 60%,
      transparent 100%
    );
    -webkit-line-clamp: 2;
  }
  .grid-post.post-music .grid-audio-wrap,
  .grid-post.post-video .grid-media:not(.has-media--video) .play-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }
  /* Profil : Mod./Suppr. sous l’extrait, au-dessus des stats (vignette média) */
  .profile-grid .grid-thumb-wrap:has(.grid-snippet--overlay) .grid-post-manage {
    top: auto;
    bottom: 2.5rem;
    left: 0.12rem;
    right: auto;
    justify-content: flex-start;
    max-width: 52%;
    z-index: 5;
  }
  .profile-grid .grid-thumb-wrap:has(.grid-snippet--overlay) .grid-snippet--overlay {
    padding-right: 0.45rem;
  }
  .grid-overlay {
    opacity: 1;
    position: absolute;
    inset: auto 0 0 0;
    top: auto;
    height: auto;
    min-height: 2.1rem;
    padding: 0.35rem 0.45rem;
    z-index: 3;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 65%,
      transparent 100%
    );
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.72rem;
  }
  .overlay-stat {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .grid-post.post-story .grid-overlay {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0.4rem;
  }
  .grid-post.post-story .overlay-stat--muted {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
  }
  .instagram-grid .overlay-stat {
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    padding: 0.18rem 0.42rem;
  }
  .instagram-grid .grid-overlay {
    min-height: clamp(1.85rem, 8vw, 2.15rem);
    gap: clamp(0.3rem, 1.5vw, 0.5rem);
  }
}
@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 180;
    background: var(--ams-scrim);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gp-overlay-in 0.2s var(--ease);
    pointer-events: auto;
    cursor: pointer;
  }
  body.nav-open .site-header {
    z-index: 200;
  }
  body.nav-open .main-nav.is-open {
    z-index: 201;
  }
}
@keyframes gp-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .notifications-panel {
    animation: none;
  }
  .notifications-backdrop {
    animation: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate],
  html.reduce-motion [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .orb { animation: none; }
  .brand-name-shine {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .brand-domain-glow { animation: none; opacity: 1; text-shadow: none; }
  .brand-sphere { animation: none; }
  .brand-ring { display: none; }
  .brand-aura { animation: none; opacity: 0.7; }
  .brand-shine::after { display: none; }
  .section-title--shine {
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .ct-orb,
  .type-card-border,
  .type-card-shine,
  .type-icon-wrap,
  .type-icon-ring,
  .type-icon-pulse,
  .type-icon svg {
    animation: none !important;
  }
  .type-card { animation: none; opacity: 1; transform: none; }
  .type-card-cta { opacity: 1; transform: none; }
  .feed-hero-orb,
  .feed-hero-ring {
    animation: none !important;
  }
}
.auth-shell {
  width: min(100%, 76rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: stretch;
}
.auth-shell-form {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}
.site-public-intro {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
.site-public-intro-hero {
  margin-bottom: 1.35rem;
  text-align: center;
}
.site-public-intro-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.site-public-intro-tagline {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-public-intro-tagline em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-public-intro-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: clamp(0.88rem, 2.4vw, 0.98rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.auth-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.auth-feature-card {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  padding: 1px;
  overflow: hidden;
}
.auth-feature-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.auth-feature-card--violet .auth-feature-card-glow {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.45), rgba(94, 234, 212, 0.12) 60%, transparent);
}
.auth-feature-card--teal .auth-feature-card-glow {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.5), rgba(199, 125, 255, 0.1) 55%, transparent);
}
.auth-feature-card--rose .auth-feature-card-glow {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.45), rgba(244, 199, 107, 0.12) 55%, transparent);
}
.auth-feature-card--gold .auth-feature-card-glow {
  background: linear-gradient(135deg, rgba(244, 199, 107, 0.5), rgba(199, 125, 255, 0.15) 50%, transparent);
}
.auth-feature-card--aurora .auth-feature-card-glow {
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.35), rgba(255, 107, 157, 0.28), rgba(94, 234, 212, 0.25));
}
.auth-feature-card-inner {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--ams-surface-mid) 0%, var(--ams-surface-panel) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.auth-feature-card:hover .auth-feature-card-inner,
.auth-feature-card:focus-within .auth-feature-card-inner {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.auth-feature-card:hover .auth-feature-card-glow,
.auth-feature-card:focus-within .auth-feature-card-glow {
  opacity: 0.9;
}
.auth-feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-feature-card--violet .auth-feature-icon {
  color: #e0b3ff;
  background: rgba(199, 125, 255, 0.14);
  border-color: rgba(199, 125, 255, 0.35);
  box-shadow: 0 0 24px rgba(199, 125, 255, 0.2);
}
.auth-feature-card--teal .auth-feature-icon {
  color: #9ef5e8;
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.18);
}
.auth-feature-card--rose .auth-feature-icon {
  color: #ffb3cc;
  background: rgba(255, 107, 157, 0.12);
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: 0 0 24px rgba(255, 107, 157, 0.18);
}
.auth-feature-card--gold .auth-feature-icon {
  color: #ffe6a8;
  background: rgba(244, 199, 107, 0.12);
  border-color: rgba(244, 199, 107, 0.38);
  box-shadow: 0 0 24px rgba(244, 199, 107, 0.16);
}
.auth-feature-card--aurora .auth-feature-icon {
  color: #f0eef8;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(94, 234, 212, 0.15));
  border-color: rgba(255, 255, 255, 0.2);
}
.auth-feature-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
.auth-feature-body {
  min-width: 0;
  flex: 1;
}
.auth-feature-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.auth-feature-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.site-public-intro-footer {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-3) 8%, var(--bg-card)) 0%,
    color-mix(in srgb, var(--accent) 10%, var(--bg-card)) 50%,
    color-mix(in srgb, var(--accent-2) 6%, var(--bg-card)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent-3) 22%, var(--border));
  box-shadow: var(--shadow);
}
.site-public-intro-cta {
  margin: 0 0 0.65rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.55;
  color: var(--text);
}
.site-public-intro-signature {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}
.site-public-intro-signature-mark {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.65);
}
.home-guest-social-proof {
  width: min(100%, var(--container-max));
  margin: 0 auto 2rem;
  padding: 0 var(--gutter);
}
.site-public-proof {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(155deg, var(--ams-surface-mid) 0%, var(--ams-surface-panel) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.site-public-proof-head {
  margin-bottom: 0.85rem;
  text-align: center;
}
.site-public-proof-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.site-public-proof-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.site-public-proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.site-public-proof-metric {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 6.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.site-public-proof-metric--online .site-public-proof-metric-value {
  color: var(--accent-3);
}
.site-public-proof-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gold);
}
.site-public-proof-metric-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-public-proof-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.site-public-proof-preview {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-public-proof-preview:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-1px);
}
.site-public-proof-preview-media {
  display: block;
  aspect-ratio: 1;
  border-radius: calc(var(--radius-sm) - 2px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.12), rgba(94, 234, 212, 0.1));
}
.site-public-proof-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-public-proof-preview-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  min-height: 4.5rem;
  padding: 0.35rem;
  text-align: center;
}
.site-public-proof-preview-glyph {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.85;
}
.site-public-proof-preview-snippet {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-public-proof-preview-type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.site-public-proof-grid {
  margin-bottom: 0.85rem;
}
.site-public-proof-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.site-public-proof-cta {
  min-width: 0;
}
@media (min-width: 560px) {
  .auth-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .auth-feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.45rem);
    margin: 0 auto;
    width: 100%;
  }
}
@media (min-width: 1025px) {
  .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(22rem, 34vw);
    gap: 2.25rem 2.75rem;
    align-items: start;
  }
  .auth-shell-form {
    max-width: none;
    margin: 0;
    position: sticky;
    top: max(1.5rem, env(safe-area-inset-top));
  }
  .site-public-intro-hero {
    text-align: left;
  }
  .site-public-intro-lead {
    margin-left: 0;
    margin-right: 0;
  }
  .site-public-intro-footer {
    text-align: left;
  }
  .site-public-intro-signature {
    justify-content: flex-start;
  }
  .auth-feature-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}
.auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}
.layout-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.layout-auth .auth-main {
  flex: 1;
  min-height: 0;
}
.site-footer--auth {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
}
.brand-center { flex-direction: column; text-align: center; margin-bottom: 1.5rem; }
.auth-form-lead {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}
.auth-private-notice {
  font-size: 0.85rem;
  color: var(--accent-3);
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: rgba(94, 234, 212, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 234, 212, 0.25);
  line-height: 1.45;
}
.auth-card h1 { font-family: var(--font-display); margin: 0 0 1.5rem; font-size: 1.75rem; }
.auth-form label, .publish-form label { display: block; margin-bottom: 1rem; }
.auth-form span, .publish-form span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.field-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; opacity: 0.85; }
.auth-form input, .auth-form textarea,
.publish-form input, .publish-form textarea, .publish-form select,
.comment-form textarea, .chat-input input, .collab-create-form input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent-3); }
.auth-gateway-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-gateway-tab {
  display: block;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.auth-gateway-tab.is-active {
  border-color: var(--accent-3);
  color: var(--accent-3);
  background: rgba(94, 234, 212, 0.08);
}
.auth-gateway-panel { display: none; }
.auth-gateway-panel.is-active { display: block; }
.auth-gateway-panel h1 { font-family: var(--font-display); margin: 0 0 1.25rem; font-size: 1.5rem; }
.auth-card.auth-gateway { max-width: 28rem; }
.form-errors { list-style: none; padding: 0; margin: 0 0 1rem; }
.form-errors li { color: #ff8a9b; font-size: 0.85rem; margin-bottom: 0.35rem; }
.alert {
  max-width: 1280px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.alert-success { background: rgba(94, 234, 212, 0.15); border: 1px solid var(--accent-3); color: var(--accent-3); }
.alert-warning { background: rgba(251, 191, 36, 0.12); border: 1px solid #fbbf24; color: #fde68a; }
.alert-error { background: rgba(255, 107, 157, 0.12); border: 1px solid var(--accent-2); color: #ff9eb5; }
.empty-state { color: var(--text-muted); text-align: center; padding: 3rem 1rem; }
.empty-state a { color: var(--accent-3); }
.page-romans [data-animate] {
  opacity: 1;
  transform: none;
}
.feed-romans-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.feed-romans-hint a { color: var(--accent-3); }
.romans-empty {
  margin: 2rem auto 3rem;
  max-width: 32rem;
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.romans-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-3);
  opacity: 0.85;
}
.romans-empty-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
}
.romans-empty-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.romans-empty-lead a { color: var(--accent-3); }
.romans-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
@keyframes forum-reply-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.forum-reply-card.forum-reply-visible {
  animation: forum-reply-in 0.55s var(--ease) forwards;
  animation-delay: calc(var(--forum-i, 0) * 60ms);
}
@media (prefers-reduced-motion: reduce) {
  .forum-orb,
  .forum-hero-ring,
  .forum-board-head-glow { animation: none; }
  [data-forum-stagger],
  .forum-reply-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .forum-board-card:hover,
  .forum-topic-row:hover { transform: none; }
}
@media (max-width: 1024px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-aside { order: 2; }
  .forum-board-head .btn { margin-left: 0; width: 100%; }
  .forum-hero-ring { display: none; }
}
.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
}
.header-user img { border-radius: 50%; object-fit: cover; }
.post-view {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.post-view-title { font-family: var(--font-display); font-size: 2rem; margin: 0 0 1rem; }
.post-excerpt {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}
.post-media img,
.post-media video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.post-media--image,
.post-media--video {
  margin: 0;
}
.post-media-video-shell {
  position: relative;
  width: 100%;
}
.post-media-zoom {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.post-media-zoom img,
.post-media-video-shell .video-player {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}
.post-media-zoom img {
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.post-media-zoom:hover img,
.post-media-zoom:focus-visible img {
  transform: scale(1.02);
  opacity: 0.92;
}
.post-media-zoom--fab {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  bottom: auto;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
}
.post-media-zoom--fab .post-media-zoom-hint {
  position: static;
}
.post-media-zoom--fab:hover .post-media-zoom-hint,
.post-media-zoom--fab:focus-visible .post-media-zoom-hint {
  background: rgba(124, 92, 255, 0.55);
  border-color: var(--accent-3);
}
.post-media-zoom:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
}
.post-media-zoom-hint {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  bottom: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--ams-scrim);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.post-media-zoom-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.image-lightbox[hidden] {
  display: none !important;
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(4, 5, 10, 0.94);
  cursor: zoom-out;
}
.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 96vw);
  height: min(100%, 96vh);
  max-height: calc(100dvh - 2rem);
  pointer-events: none;
}
.image-lightbox-img,
.image-lightbox-video {
  display: block;
  max-width: 100%;
  max-height: min(92vh, 92dvh);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.image-lightbox-img {
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.image-lightbox-video {
  width: min(96vw, 100%);
  background: #000;
}
.image-lightbox-img[hidden],
.image-lightbox-video[hidden] {
  display: none !important;
}
.image-lightbox[data-media-mode="video"] .image-lightbox-panel {
  pointer-events: auto;
}
.image-lightbox-close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 5;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--text);
  background: var(--ams-scrim-panel);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(124, 92, 255, 0.45);
  border-color: var(--accent);
  outline: none;
}
body.image-lightbox-open {
  overflow: hidden;
}
body.image-lightbox-open .site-header,
body.image-lightbox-open .mobile-dock,
body.image-lightbox-open .mobile-bottom-chrome,
body.image-lightbox-open .global-player {
  pointer-events: none;
}
.post-media-audio {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.4), rgba(45, 49, 66, 0.6));
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.audio-player, .video-player {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
}
.media-caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--accent-3);
  text-align: center;
}
.media-missing {
  color: var(--accent-2);
  font-size: 0.9rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
}
.post-content { font-size: 1.1rem; line-height: 1.75; margin: 1.5rem 0; }
.post-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.post-delete-form { margin-left: auto; }
@media (max-width: 480px) {
  .post-delete-form { margin-left: 0; width: 100%; }
  .post-delete-form .btn { width: 100%; }
}
.like-btn.is-liked { color: var(--accent-2); border-color: var(--accent-2); }
.comments-section h2 { font-family: var(--font-display); margin-bottom: 1rem; }
.comment-form { margin-bottom: 2rem; }
.comment-form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}
.comment-form-hint code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.comment-item:target {
  background: rgba(94, 234, 212, 0.08);
  border-radius: var(--radius-sm);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding: 0.5rem;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head .report-wrap {
  margin-left: auto;
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
}
.comment-username { font-size: 0.8rem; color: var(--text-muted); }
.comment-head time { font-size: 0.75rem; color: var(--text-muted); }
.comment-reply-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.15rem 0;
}
.comment-reply-btn:hover { text-decoration: underline; }
.comment-delete-form { display: inline-flex; margin: 0; }
.comment-delete-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.15rem 0;
}
.comment-delete-btn:hover {
  color: #f87171;
  text-decoration: underline;
}
.comment-delete-btn--admin {
  color: color-mix(in srgb, #f87171 85%, var(--accent-2));
  font-weight: 600;
}
.comment-text { margin: 0; line-height: 1.5; }
.comment-mention,
.text-mention,
a.text-mention {
  color: var(--accent-3);
  font-weight: 500;
  text-decoration: none;
}
.comment-mention:hover,
.text-mention:hover,
a.text-mention:hover { text-decoration: underline; }
.post-view-title .text-mention,
.forum-topic-op h1 .text-mention {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-3);
  text-underline-offset: 0.15em;
}
.comment-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
}
.comment-reactions-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  flex-shrink: 0;
}
.comment-reactions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.comment-reaction-btn,
.comment-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem 0.2rem 0.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1;
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.18s var(--ease);
}
.comment-reaction-btn {
  cursor: pointer;
}
.comment-reaction-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
.comment-reaction-btn:active {
  transform: translateY(0) scale(0.97);
}
.comment-reaction-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.18s var(--ease);
}
.comment-reaction-glyph svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  display: block;
}
.comment-reaction-btn:hover .comment-reaction-glyph {
  transform: scale(1.06);
}
.comment-reaction-count {
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: max-width 0.25s var(--ease), opacity 0.2s var(--ease), margin 0.2s var(--ease);
}
.comment-reaction-count.has-value {
  min-width: 0.55rem;
  max-width: 2rem;
  opacity: 1;
  margin-right: 0.1rem;
}
.comment-reaction-btn--heart:hover,
.comment-reaction-btn--heart.is-active {
  color: #ff7eb3;
  border-color: rgba(255, 107, 157, 0.35);
  background: rgba(255, 107, 157, 0.08);
}
.comment-reaction-btn--heart.is-active .comment-reaction-glyph {
  background: linear-gradient(145deg, rgba(255, 107, 157, 0.45), rgba(255, 60, 120, 0.25));
  box-shadow: 0 0 14px rgba(255, 107, 157, 0.35);
}
.comment-reaction-btn--star:hover,
.comment-reaction-btn--star.is-active {
  color: #f5d76e;
  border-color: rgba(244, 199, 107, 0.35);
  background: rgba(244, 199, 107, 0.08);
}
.comment-reaction-btn--star.is-active .comment-reaction-glyph {
  background: linear-gradient(145deg, rgba(244, 199, 107, 0.5), rgba(212, 160, 55, 0.2));
  box-shadow: 0 0 14px rgba(244, 199, 107, 0.3);
}
.comment-reaction-btn--fire:hover,
.comment-reaction-btn--fire.is-active {
  color: #ffb366;
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.08);
}
.comment-reaction-btn--fire.is-active .comment-reaction-glyph {
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.5), rgba(234, 88, 12, 0.22));
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.32);
}
.comment-reaction-btn.is-active {
  font-weight: 600;
}
.comment-reactions.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.comment-reactions--readonly {
  padding: 0.35rem 0.5rem;
}
.comment-reactions--readonly .comment-reactions-label {
  display: none;
}
.comment-reactions--readonly .comment-reaction-pill {
  padding: 0.15rem 0.4rem 0.15rem 0.15rem;
  border-color: rgba(255, 255, 255, 0.08);
}
.comment-reaction-pill--heart { color: #ff7eb3; }
.comment-reaction-pill--star { color: #f5d76e; }
.comment-reaction-pill--fire { color: #ffb366; }
.notifications-item--mention .notifications-item-type { color: #7dd3fc; }
.thread-excerpt { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0; }
.thread-actions a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.vote-form { display: contents; }
.profile-cover { background-size: cover; background-position: center; }
.profile-avatar { object-fit: cover; }
.profile-edit-panel {
  margin: 0 0 2.5rem;
  position: relative;
  z-index: 2;
}
.profile-edit-panel[hidden] {
  display: none !important;
}
.profile-edit-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(22, 24, 40, 0.95) 0%,
    rgba(14, 16, 28, 0.92) 55%,
    rgba(18, 20, 32, 0.94) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.profile-edit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(199, 125, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 0%, rgba(94, 234, 212, 0.12), transparent 50%);
}
.profile-edit-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0.75rem;
}
.profile-edit-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.profile-edit-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
}
.profile-edit-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 28rem;
}
.profile-edit-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.profile-edit-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.profile-edit-visuals {
  position: relative;
  margin: 0 1.25rem 1.25rem;
}
.profile-edit-cover-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.profile-edit-cover-preview {
  position: relative;
  min-height: 140px;
  background:
    linear-gradient(135deg, rgba(199, 125, 255, 0.35), rgba(255, 107, 157, 0.25)),
    linear-gradient(120deg, rgba(18, 20, 32, 0.9), rgba(28, 31, 48, 0.85));
  background-size: cover;
  background-position: center;
}
.profile-edit-cover-preview.has-image,
.profile-edit-cover-preview.has-custom-preview {
  background-color: rgba(0, 0, 0, 0.25);
}
.profile-edit-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -3.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}
.profile-edit-avatar-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--accent-3));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.profile-edit-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-deep);
}
.profile-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.profile-upload-zone {
  cursor: pointer;
  display: block;
}
.profile-upload-zone--cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to top,
    rgba(8, 10, 18, 0.75) 0%,
    rgba(8, 10, 18, 0.2) 45%,
    transparent 100%
  );
  transition: background 0.25s var(--ease);
}
.profile-upload-zone--cover:hover,
.profile-upload-zone--cover:focus-within {
  background: linear-gradient(
    to top,
    rgba(8, 10, 18, 0.85) 0%,
    rgba(199, 125, 255, 0.15) 100%
  );
}
.profile-upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(12, 14, 24, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.profile-upload-zone--cover:hover .profile-upload-zone-inner,
.profile-upload-zone--cover:focus-within .profile-upload-zone-inner {
  border-color: var(--accent-3);
  transform: translateY(-2px);
}
.profile-upload-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.profile-upload-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.profile-upload-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.profile-upload-zone--avatar {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
}
.profile-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.55);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
}
.profile-edit-avatar-ring:hover .profile-upload-overlay,
.profile-upload-zone--avatar:focus-within .profile-upload-overlay {
  opacity: 1;
}
.profile-upload-zone--avatar:hover .profile-upload-overlay,
.profile-upload-zone--avatar:focus-within .profile-upload-overlay {
  background: rgba(28, 20, 48, 0.72);
}
.profile-edit-fields {
  position: relative;
  padding: 0 1.35rem 0.5rem;
}
.profile-edit-fields label {
  margin-bottom: 1.1rem;
}
.profile-edit-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.profile-edit-actions .btn-primary {
  min-width: 10rem;
}
body.profile-edit-open {
  overflow-x: hidden;
}
.install-checklist { list-style: none; padding: 0; }
.install-checklist li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.install-checklist .ok { color: var(--accent-3); }
.install-checklist .err { color: var(--accent-2); }
.install-steps { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.install-success { color: var(--accent-3); font-weight: 600; }
.filter-chips .chip { text-decoration: none; display: inline-block; }
.gp-audio-element {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.global-player {
  margin: 0.65rem 1.25rem 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(28, 31, 48, 0.92), rgba(18, 20, 32, 0.88));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.global-player-inner {
  display: grid;
  grid-template-columns: auto 1fr auto minmax(120px, 1.4fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1rem;
}
.gp-visual {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.gp-disc {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--gold), var(--accent-3), var(--accent));
  box-shadow: 0 0 20px rgba(199, 125, 255, 0.45);
}
.global-player.is-playing .gp-disc {
  animation: spin-slow 4s linear infinite;
}
.gp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.35);
  opacity: 0;
  animation: gp-pulse 2s ease-out infinite;
}
.global-player.is-playing .gp-pulse { opacity: 1; }
.global-player {
  position: relative;
}
.site-update-banner {
  --banner-duration: 42s;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-bottom: 1px solid color-mix(in srgb, var(--accent-3) 22%, var(--border));
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--accent) 14%, transparent) 0%,
      var(--ams-surface-panel-solid) 28%,
      var(--ams-surface-panel-solid) 72%,
      color-mix(in srgb, var(--accent-3) 12%, transparent) 100%
    );
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--ams-border-highlight);
  overflow: hidden;
  box-sizing: border-box;
}
.site-update-banner-inner {
  display: flex;
  align-items: stretch;
  min-height: 2.65rem;
  gap: 0;
}
.site-update-banner-badge {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem 0 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(90deg, rgba(244, 199, 107, 0.16), transparent);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.site-update-banner-badge-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(244, 199, 107, 0.25), transparent 70%);
  pointer-events: none;
}
.site-update-banner-badge-icon {
  position: relative;
  font-size: 0.75rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(199, 125, 255, 0.65);
}
.site-update-banner-badge-label {
  position: relative;
}
.site-update-banner-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}
.site-update-banner-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  animation: site-banner-marquee var(--banner-duration, 42s) linear infinite;
  will-change: transform;
}
.site-update-banner-run {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-update-banner-chunk {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}
.site-update-banner-text {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.site-update-banner-sep {
  flex-shrink: 0;
  font-size: 0.45rem;
  color: var(--accent-2);
  opacity: 0.85;
}
.site-update-banner-track--fits {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  animation: none;
}
.site-update-banner-track--fits .site-update-banner-run[aria-hidden="true"] {
  display: none;
}
.site-update-banner-track--fits .site-update-banner-chunk {
  padding-right: 0;
  justify-content: center;
}
.site-update-banner-track--fits .site-update-banner-text {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
}
.site-update-banner-track--fits .site-update-banner-sep {
  display: none;
}
@keyframes site-banner-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.site-update-banner-track--static {
  animation: none;
  width: 100%;
  justify-content: center;
}
.site-update-banner--preview {
  width: 100%;
  margin: 0.75rem 0 1rem;
  border-radius: var(--radius-sm);
}
.site-poll {
  width: 100%;
  max-width: 100%;
  margin: 0.5rem 0 0;
  padding: 0 clamp(0.65rem, 3vw, 1.25rem) 0.65rem;
  box-sizing: border-box;
}
.site-poll-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: linear-gradient(
    135deg,
    rgba(18, 22, 36, 0.96) 0%,
    rgba(12, 14, 24, 0.94) 55%,
    rgba(28, 24, 48, 0.92) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.site-poll-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.25rem;
  padding: 0.85rem 0.65rem;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.14), transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.site-poll-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1118;
  background: linear-gradient(145deg, var(--accent-3), #5eead4);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}
.site-poll-badge-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.site-poll-body {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem 0.95rem;
}
.site-poll-question {
  margin: 0 0 0.65rem;
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.site-poll-status {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.site-poll-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-poll-options {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-poll-option {
  display: block;
  cursor: pointer;
}
.site-poll-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.site-poll-option-ui {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.site-poll-option input:focus-visible + .site-poll-option-ui {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}
.site-poll-option input:checked + .site-poll-option-ui {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.1);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.2) inset;
}
.site-poll-option:hover .site-poll-option-ui {
  border-color: rgba(199, 125, 255, 0.35);
}
.site-poll-option-label {
  font-size: 0.88rem;
  line-height: 1.35;
}
.site-poll-submit {
  align-self: flex-start;
}
.site-poll-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-poll-result {
  margin: 0;
}
.site-poll-result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.site-poll-result-label {
  font-size: 0.84rem;
  line-height: 1.3;
}
.site-poll-result-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-3);
  flex-shrink: 0;
}
.site-poll-result-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.site-poll-result-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(199, 125, 255, 0.85), rgba(94, 234, 212, 0.9));
  transition: width 0.45s var(--ease);
}
.site-poll-result.is-mine .site-poll-result-label {
  color: #fff;
}
.site-poll-result-you {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--accent-3);
}
.admin-poll-section {
  margin-bottom: 2rem;
}
.admin-poll-results-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-poll-results-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.admin-poll-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-poll-result {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}
.admin-poll-result-label {
  font-size: 0.9rem;
}
.admin-poll-result-meta {
  font-size: 0.8rem;
  color: var(--accent-3);
}
.admin-poll-result-bar {
  grid-column: 1 / -1;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.admin-poll-result-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(199, 125, 255, 0.8), rgba(94, 234, 212, 0.85));
  border-radius: inherit;
}
.admin-poll-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-poll-options-field {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-poll-options-field legend {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-poll-option-field span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.admin-poll-option-field input {
  width: 100%;
}
@media (max-width: 1024px) {
  .site-poll-inner {
    flex-direction: column;
  }
  .site-poll-badge {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-poll-body {
    padding: 0.75rem 0.85rem 0.85rem;
  }
  .site-poll-submit {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 1024px) {
  .site-update-banner {
    margin-top: 0.3rem;
  }
  .site-update-banner-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .site-update-banner-badge {
    justify-content: center;
    width: 100%;
    padding: 0.35rem 0.65rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(244, 199, 107, 0.12), transparent);
  }
  .site-update-banner-viewport {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.5rem 0;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 2%,
      #000 98%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 2%,
      #000 98%,
      transparent 100%
    );
  }
  .site-update-banner-text {
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
    line-height: 1.3;
  }
  .site-update-banner-chunk {
    gap: 1rem;
    padding-right: 1rem;
  }
  .site-update-banner-track--fits .site-update-banner-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
    min-height: 0;
    padding: 0.45rem 0.65rem 0.55rem;
  }
  .site-update-banner-track--fits .site-update-banner-text {
    font-size: clamp(0.76rem, 3.6vw, 0.9rem);
    padding: 0 0.25rem;
  }
}
@media (max-width: 380px) {
  .site-update-banner-badge-label {
    font-size: 0.52rem;
    letter-spacing: 0.07em;
  }
  .site-update-banner-viewport {
    min-height: 2.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-update-banner-viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
    padding: 0.45rem 0.65rem 0.55rem;
  }
  .site-update-banner-track {
    animation: none;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .site-update-banner-run[aria-hidden="true"] {
    display: none;
  }
  .site-update-banner-chunk {
    padding-right: 0;
    justify-content: center;
  }
  .site-update-banner-text {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
  }
  .site-update-banner-sep {
    display: none;
  }
}
@keyframes gp-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.gp-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.gp-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-3);
}
.gp-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gp-btn:hover { background: rgba(255, 255, 255, 0.12); }
.gp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.gp-btn-mode {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}
.gp-btn-mode:hover { color: var(--text); }
.gp-btn-mode.is-active {
  color: var(--accent-3);
  background: rgba(94, 234, 212, 0.12);
}
.gp-btn-mode.is-active.is-one {
  color: var(--gold);
  background: rgba(244, 199, 107, 0.12);
}
.gp-btn-play {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 20px rgba(199, 125, 255, 0.4);
}
.gp-btn-play:hover { transform: scale(1.04); }
.gp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.gp-time {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
}
.gp-progress {
  flex: 1;
  min-width: 60px;
  height: 4px;
  accent-color: var(--accent-3);
  cursor: pointer;
}
.gp-btn-list {
  position: relative;
  width: auto;
  min-width: var(--touch-min);
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.gp-list-icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.gp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: var(--accent-2);
  color: #fff;
}
.gp-playlist-panel {
  border-top: 1px solid var(--border);
  max-height: min(50vh, 340px);
  overflow-y: auto;
  padding: 0.75rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}
.gp-playlist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
}
.gp-source-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.gp-source-select {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.85rem;
}
.gp-btn-text {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--accent-3);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}
.gp-btn-text:hover { background: rgba(255, 255, 255, 0.06); }
.gp-btn-text--danger { color: #f87171; }
.gp-playlist-empty {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.gp-track-remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.gp-track-remove:hover { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.gp-add-dialog {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 22, 0.98) 12%);
}
.gp-add-dialog-inner {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18, 20, 32, 0.98);
}
.gp-add-dialog-inner h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.gp-add-dialog-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}
.gp-add-dialog-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.88rem;
}
.gp-add-dialog-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--accent-3); }
.global-player { position: relative; }
.gp-playlist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.gp-playlist-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.gp-playlist-count { font-size: 0.75rem; color: var(--text-muted); }
.gp-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gp-playlist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.gp-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.55rem 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: var(--touch-min);
}
.gp-track:hover { color: var(--accent-3); }
.gp-track.is-active .gp-track-title { color: var(--accent-3); }
.gp-track-title { font-weight: 600; font-size: 0.9rem; }
.gp-track-artist { font-size: 0.75rem; color: var(--text-muted); }
.gp-track-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}
.gp-track-link:hover { text-decoration: underline; }
#gpAudio { display: none; }
.gp-grid-play { pointer-events: auto; }
.post-audio-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.post-audio-actions .btn { align-self: flex-start; }
@media (max-width: 1024px) {
  .global-player-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "visual meta list"
      "controls controls controls"
      "progress progress progress";
    gap: 0.5rem 0.65rem;
  }
  .gp-visual { grid-area: visual; }
  .gp-meta { grid-area: meta; min-width: 0; }
  .gp-controls {
    grid-area: controls;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .gp-btn-list {
    grid-area: list;
    align-self: center;
    justify-self: end;
    width: var(--touch-min);
    min-width: var(--touch-min);
    padding: 0;
    border-radius: 50%;
  }
  .gp-btn-list .gp-list-label { display: none; }
  .gp-btn-list .gp-list-icon { display: block; }
  .gp-btn-list .gp-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.65rem;
    pointer-events: none;
  }
  .gp-progress-wrap { grid-area: progress; }
}
@media (max-width: 1024px) {
  .global-player {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
  }
  .global-player-inner {
    padding: 0.5rem 0.65rem;
    gap: 0.45rem 0.5rem;
  }
  .gp-visual { width: 40px; height: 40px; }
  .gp-disc { width: 40px; height: 40px; }
  .gp-btn-play {
    width: 44px;
    height: 44px;
  }
  .gp-controls .gp-btn:not(.gp-btn-play) {
    width: 40px;
    height: 40px;
  }
  .gp-controls .gp-btn-mode {
    width: 36px;
    height: 36px;
  }
  .gp-controls .gp-btn-mode svg {
    width: 18px;
    height: 18px;
  }
  .has-global-player.global-player-active .site-main {
    padding-bottom: calc(var(--mobile-dock-h) + 1.75rem + env(safe-area-inset-bottom));
  }
  .has-global-player.global-player-active .site-footer {
    padding-bottom: calc(var(--mobile-dock-h) + 1.75rem + env(safe-area-inset-bottom));
  }
  .header-user span { display: none; }
  .header-user img { width: 36px; height: 36px; }
}
.admin-user-action-form { margin: 0; }
.story-reading-progress {
  position: relative;
  margin: 0.75rem 0 0.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.story-reading-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-3), var(--gold));
  transition: width 0.35s var(--ease);
}
.story-reading-progress-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.story-reading-progress-new {
  color: var(--accent-3);
  font-weight: 600;
}
.home-continue-reading {
  margin-bottom: 2rem;
}
.home-continue-reading-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.home-continue-reading-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.home-continue-reading-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.home-continue-reading-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-1px);
}
.home-continue-reading-card--new {
  border-color: rgba(244, 199, 107, 0.35);
  box-shadow: 0 0 0 1px rgba(244, 199, 107, 0.12);
}
.home-continue-reading-cover {
  position: relative;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 5.5rem;
  border-radius: calc(var(--radius-sm) - 2px);
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.18), rgba(94, 234, 212, 0.12));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.home-continue-reading-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.home-continue-reading-cover-placeholder .story-cover-placeholder {
  width: 70%;
  max-width: 3.25rem;
}
.home-continue-reading-percent {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(12, 10, 22, 0.82);
  color: var(--gold);
}
.home-continue-reading-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.home-continue-reading-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
.home-continue-reading-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.home-continue-reading-progress {
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.home-continue-reading-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}
.home-continue-reading-cta {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-3);
}
.home-continue-reading-card--new .home-continue-reading-cta {
  color: var(--gold);
}
@media (max-width: 640px) {
  .eclats-strip-sub {
    display: none;
  }
  .eclats-strip-label {
    border-right: none;
    padding-right: 0;
  }
  .eclats-ring-avatar {
    width: 34px;
    height: 34px;
  }
  .eclats-ring-name {
    display: none;
  }
}
@media (max-width: 720px) {
  .eclat-studio-hero {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
  .eclat-studio-toolbar-hint {
    width: 100%;
  }
  .eclat-studio-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .eclat-studio-footer-copy {
    order: 1;
  }
  .eclat-studio-submit {
    order: 0;
    width: 100%;
  }
}
}

@media (max-width: 640px) {
  .story-hero {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }
.story-chapter-nav a { justify-self: center !important; }
}


.auth-private-notice--small {
  font-size: 0.85rem;
}

.auth-verify-resend-success {
  margin: 1rem 0;
}

.admin-forum-hint-top {
  margin-top: 1rem;
}

.admin-forum-alert-warning {
  margin-bottom: 1rem;
}

.admin-forum-inline-form {
  display: inline;
}

.admin-forum-topics-spacing {
  margin-top: 2rem;
}

.admin-forum-empty-top {
  margin-top: 1.5rem;
}

/* ——— Odyssée (parcours cyclique 21 sphères) ——— */
.page-odyssey .site-main {
  max-width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.odyssey-page-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.odyssey-hero h1 em {
  font-style: italic;
  color: var(--accent-3);
}
.odyssey-lead {
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 42rem;
}
.odyssey-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}
.odyssey-countdown-label,
.odyssey-cycle-label,
.odyssey-publish-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.odyssey-countdown-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  color: var(--accent-3);
}
.odyssey-cycle {
  min-width: 0;
}
.odyssey-cycle-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  color: var(--accent-3);
}
.odyssey-cycle-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.odyssey-publish-slots {
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0 0.2rem;
}
.odyssey-slot {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--text) 18%, transparent);
  filter: grayscale(1);
  opacity: 0.45;
}
.odyssey-slot.is-earned {
  color: color-mix(in srgb, var(--gold) 45%, var(--text-muted));
  filter: grayscale(0.35);
  opacity: 0.65;
}
.odyssey-slot.is-available {
  color: var(--gold);
  filter: none;
  opacity: 1;
  text-shadow: 0 0 12px rgba(244, 199, 107, 0.45);
}
.odyssey-publish-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.odyssey-map-shell {
  padding: 1rem 0.75rem 1.25rem;
  margin-bottom: 2rem;
}
.odyssey-map-stage {
  position: relative;
}
.odyssey-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}
.odyssey-map-kicker {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.odyssey-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent-3);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.odyssey-fullscreen-btn:hover,
.odyssey-fullscreen-btn:focus-visible {
  background: rgba(94, 234, 212, 0.16);
  border-color: var(--accent-3);
  outline: none;
}
.odyssey-fullscreen-btn-icon {
  font-size: 1rem;
  line-height: 1;
}
.odyssey-map-preview {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  overflow-x: hidden;
}
.odyssey-map-viewport {
  width: 100%;
  max-width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
.odyssey-map,
.odyssey-track {
  overflow-x: hidden;
  max-width: 100%;
}
.odyssey-preview-fade {
  display: none;
  pointer-events: none;
}
.odyssey-map-hint--fullscreen {
  display: none;
}
.odyssey-map {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  overflow-x: hidden;
  background: var(--odyssey-map-bg, var(--bg-deep));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--ams-border-highlight);
}
.odyssey-map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.odyssey-map-stars {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 44% 34%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 58% 78%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 72% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 86% 48%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 92% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 36% 12%, rgba(94, 234, 212, 0.55), transparent),
    radial-gradient(1px 1px at 64% 92%, rgba(199, 125, 255, 0.5), transparent);
  background-size: 100% 100%;
  animation: odyssey-stars-drift 90s linear infinite;
}
.odyssey-map-nebula {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(199, 125, 255, 0.2), transparent 58%),
    radial-gradient(ellipse 50% 40% at 82% 72%, rgba(255, 107, 157, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 35% at 50% 100%, rgba(94, 234, 212, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 8%, rgba(124, 92, 255, 0.15), transparent 52%);
}
@keyframes odyssey-stars-drift {
  from { transform: translate3d(0, 0, 0); }
to { transform: translate3d(-2%, -1.5%, 0); }
}
.odyssey-track {
  position: relative;
  z-index: 1;
  padding: 1.15rem 0.85rem 1.35rem;
}
.odyssey-segment {
  position: relative;
}
.odyssey-segment-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.odyssey-segment-connector {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0;
}
.odyssey-segment-connector-line {
  display: block;
  width: 2px;
  height: 1.35rem;
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.15), rgba(94, 234, 212, 0.65), rgba(199, 125, 255, 0.45));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.35);
}
.odyssey-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.35rem;
  margin: 0;
  padding: 0.35rem 0.1rem;
  list-style: none;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.odyssey-segment--reverse .odyssey-row .odyssey-cell:nth-child(1) { order: 3; }
.odyssey-segment--reverse .odyssey-row .odyssey-cell:nth-child(2) { order: 2; }
.odyssey-segment--reverse .odyssey-row .odyssey-cell:nth-child(3) { order: 1; }
.odyssey-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.odyssey-cell--portal {
  flex-direction: column;
  gap: 0.35rem;
}
.odyssey-portal-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0 0.85rem;
}
.odyssey-portal-connector {
  display: block;
  width: 2px;
  height: 0.85rem;
  background: linear-gradient(180deg, rgba(244, 199, 107, 0.45), rgba(244, 199, 107, 0.06));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(244, 199, 107, 0.2);
}
.odyssey-node--portal.is-unlocked .odyssey-portal-connector {
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.55), rgba(244, 199, 107, 0.25));
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
}
.odyssey-portal-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
}
.odyssey-node--portal.is-unlocked .odyssey-portal-label {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(244, 199, 107, 0.35);
}

/* Sphères numérotées */
.odyssey-planet-btn,
.odyssey-portal-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease);
}
.odyssey-planet-btn:hover:not(:disabled),
.odyssey-portal-btn:hover:not(:disabled) {
  transform: scale(1.06);
}
.odyssey-planet-btn:active,
.odyssey-portal-btn:active {
  transform: scale(0.96);
}
.odyssey-planet-btn {
  --odyssey-orb: clamp(2.5rem, 26vw, 3.15rem);
  width: var(--odyssey-orb);
  height: var(--odyssey-orb);
  max-width: 100%;
}
.odyssey-planet-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.odyssey-planet-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 115%, var(--sphere-glow, rgba(199, 125, 255, 0.35)), transparent 62%);
  opacity: 0.85;
}
.odyssey-planet-body {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.42), transparent 38%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.35), transparent 42%),
    var(--sphere-core, linear-gradient(155deg, #8b93a8, #3d4455));
  box-shadow:
    inset -0.2em -0.35em 0.65em rgba(0, 0, 0, 0.55),
    inset 0.15em 0.12em 0.35em rgba(255, 255, 255, 0.18),
    0 0.25em 0.9em rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.odyssey-planet-glare {
  position: absolute;
  top: 14%;
  left: 20%;
  width: 32%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.65), transparent 72%);
  opacity: 0.85;
}
.odyssey-planet-orb--tone-1 {
  --sphere-core: linear-gradient(155deg, #a5e8ff 0%, #38bdf8 38%, #0369a1 100%);
  --sphere-glow: rgba(56, 189, 248, 0.45);
}
.odyssey-planet-orb--tone-2 {
  --sphere-core: linear-gradient(155deg, #fde68a 0%, #f59e0b 42%, #b45309 100%);
  --sphere-glow: rgba(245, 158, 11, 0.45);
}
.odyssey-planet-orb--tone-3 {
  --sphere-core: linear-gradient(155deg, #fecdd3 0%, #f472b6 40%, #9f1239 100%);
  --sphere-glow: rgba(244, 114, 182, 0.42);
}
.odyssey-planet-orb--tone-4 {
  --sphere-core: linear-gradient(155deg, #e9d5ff 0%, #a78bfa 42%, #5b21b6 100%);
  --sphere-glow: rgba(167, 139, 250, 0.48);
}
.odyssey-planet-orb--tone-5 {
  --sphere-core: linear-gradient(155deg, #bbf7d0 0%, #4ade80 40%, #166534 100%);
  --sphere-glow: rgba(74, 222, 128, 0.42);
}
.odyssey-node--locked .odyssey-planet-orb {
  filter: grayscale(0.9) brightness(0.65);
  opacity: 0.55;
}
.odyssey-node--locked .odyssey-planet-num {
  color: rgba(255, 255, 255, 0.35);
}
.odyssey-node--current .odyssey-planet-halo {
  animation: odyssey-sphere-breathe 2.8s ease-in-out infinite;
}
.odyssey-node--current .odyssey-planet-body {
  box-shadow:
    inset -0.2em -0.35em 0.65em rgba(0, 0, 0, 0.45),
    inset 0.15em 0.12em 0.35em rgba(255, 255, 255, 0.22),
    0 0 1.1em rgba(94, 234, 212, 0.55),
    0 0.25em 0.9em rgba(0, 0, 0, 0.45);
}
.odyssey-node--done .odyssey-planet-orb {
  filter: none;
  opacity: 1;
}
.odyssey-node--done .odyssey-planet-body {
  box-shadow:
    inset -0.2em -0.35em 0.65em rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(244, 199, 107, 0.55),
    0 0.35em 1em rgba(244, 199, 107, 0.2);
}
@keyframes odyssey-sphere-breathe {
  0%, 100% { transform: scale(1); opacity: 0.75; }
50% { transform: scale(1.06); opacity: 1; }
}
.odyssey-planet-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.15rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}
.odyssey-planet-badge {
  position: absolute;
  right: -0.1rem;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(145deg, var(--gold), #e8a84a);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 10px rgba(244, 199, 107, 0.5);
}
.odyssey-planet-pulse {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.75);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.4);
  animation: odyssey-sphere-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes odyssey-sphere-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
50% { transform: scale(1.1); opacity: 1; }
}

/* Portails + (publication) */
.odyssey-portal-btn {
  --odyssey-portal: clamp(2.65rem, 27vw, 3.25rem);
  width: var(--odyssey-portal);
  height: var(--odyssey-portal);
  max-width: 100%;
}
.odyssey-portal-orb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.odyssey-portal-rays {
  position: absolute;
  inset: -18%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 32deg,
    rgba(244, 199, 107, 0.12) 32deg 38deg,
    transparent 38deg 70deg,
    rgba(94, 234, 212, 0.1) 70deg 76deg,
    transparent 76deg 108deg,
    rgba(244, 199, 107, 0.1) 108deg 114deg,
    transparent 114deg 146deg,
    rgba(94, 234, 212, 0.08) 146deg 152deg,
    transparent 152deg 360deg
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.odyssey-portal-gate {
  position: absolute;
  inset: 12%;
  border-radius: 26%;
  transform: rotate(45deg);
  background: var(
    --odyssey-portal-gate-bg,
    linear-gradient(145deg, rgba(22, 25, 42, 0.98), rgba(8, 10, 18, 0.98))
  );
  border: 2px dashed color-mix(in srgb, var(--text) 18%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--ams-border-highlight),
    var(--shadow);
}
.odyssey-portal-plus {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  font-weight: 300;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 28%, transparent);
  pointer-events: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.odyssey-node--portal.is-unlocked .odyssey-portal-rays {
  opacity: 1;
  animation: odyssey-portal-rays 6s linear infinite;
}
.odyssey-node--portal.is-unlocked .odyssey-portal-gate {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.95), rgba(167, 243, 208, 0.88));
  box-shadow:
    0 0 28px rgba(94, 234, 212, 0.55),
    0 0 48px rgba(244, 199, 107, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: odyssey-portal-gate-pulse 2.6s ease-in-out infinite;
}
.odyssey-node--portal.is-unlocked .odyssey-portal-plus {
  color: #0a1218;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.odyssey-node--portal.is-unlocked .odyssey-portal-btn:hover .odyssey-portal-plus {
  color: #061018;
}
@keyframes odyssey-portal-rays {
  from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes odyssey-portal-gate-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(94, 234, 212, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
50% { box-shadow: 0 0 36px rgba(94, 234, 212, 0.7), 0 0 20px rgba(244, 199, 107, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
}
.odyssey-map-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.odyssey-map-hint--inline {
  text-align: center;
}

/* Mobile : aperçu portrait + plein écran */
@media (max-width: 1024px) {
  .odyssey-fullscreen-btn {
    display: inline-flex;
  }
.odyssey-map-preview {
    max-height: min(62dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    background: var(--odyssey-map-preview-bg, color-mix(in srgb, var(--bg-deep) 88%, transparent));
  }
.odyssey-preview-fade {
    display: block;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2.75rem;
    margin-top: -2.75rem;
    background: linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--bg-deep) 92%, transparent) 45%,
      var(--bg-deep)
    );
  }
body.odyssey-map-fullscreen {
    overflow: hidden;
  }
body.odyssey-map-fullscreen .odyssey-map-stage {
    position: fixed;
    inset: 0;
    z-index: 10200;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: var(--odyssey-map-fullscreen-bg, var(--ams-scrim-heavy));
    backdrop-filter: blur(12px);
  }
body.odyssey-map-fullscreen .odyssey-map-toolbar {
    flex-shrink: 0;
    padding: 0.35rem 0.15rem 0.5rem;
  }
body.odyssey-map-fullscreen .odyssey-fullscreen-btn-icon {
    transform: rotate(180deg);
  }
body.odyssey-map-fullscreen .odyssey-map-preview {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border: none;
    border-radius: 0;
    background: transparent;
  }
body.odyssey-map-fullscreen .odyssey-preview-fade {
    display: none;
  }
body.odyssey-map-fullscreen .odyssey-map-hint--inline {
    display: none;
  }
body.odyssey-map-fullscreen .odyssey-map-hint--fullscreen {
    display: block;
    text-align: center;
    margin: 0.5rem 0 0;
    flex-shrink: 0;
  }
body.odyssey-map-fullscreen .odyssey-map {
    min-height: min(100%, 100%);
  }
body.odyssey-map-fullscreen .odyssey-track {
    padding: 1.25rem 0.85rem 1.75rem;
  }
}

@media (min-width: 1025px) {
  .odyssey-fullscreen-btn {
    display: none;
  }
}
/* Badge & niveau Odyssée */
.odyssey-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 199, 107, 0.45);
  background: linear-gradient(135deg, rgba(244, 199, 107, 0.22), rgba(94, 234, 212, 0.12));
  box-shadow: 0 0 16px rgba(244, 199, 107, 0.2);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.odyssey-level-badge-emblem {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.9;
}
.odyssey-level-badge-num {
  font-family: var(--font-display);
  font-size: 1.05em;
  font-style: italic;
  line-height: 1;
  color: #fff;
}
.odyssey-level-badge-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.odyssey-level-badge--inline .odyssey-level-badge-label {
  display: none;
}
.odyssey-level-badge--profile {
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  font-size: 0.78rem;
}
.odyssey-level-badge--profile .odyssey-level-badge-num {
  font-size: 1.15rem;
}
.odyssey-level-badge--large {
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
}
.odyssey-level-badge--large .odyssey-level-badge-num {
  font-size: 2rem;
  line-height: 1;
}
.odyssey-level-badge--large .odyssey-level-badge-emblem {
  font-size: 1.1rem;
}
.odyssey-level-badge--empty {
  opacity: 0.35;
  border-style: dashed;
  color: var(--text-muted);
  box-shadow: none;
}
.odyssey-level-badge--empty .odyssey-level-badge-num {
  color: var(--text-muted);
}
.odyssey-level-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-color: rgba(244, 199, 107, 0.2);
  background: linear-gradient(135deg, rgba(244, 199, 107, 0.08), rgba(94, 234, 212, 0.05));
}
.odyssey-level-card-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.odyssey-level-card-title strong {
  color: var(--gold);
  font-style: italic;
}
.odyssey-level-card-desc,
.odyssey-level-card-progress,
.odyssey-level-card-total {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.odyssey-level-card-total {
  margin-bottom: 0;
  color: var(--accent-3);
  font-weight: 600;
}
.odyssey-level-card-status--done {
  color: var(--accent-3);
  font-weight: 600;
}
.odyssey-level-card-badge {
  flex-shrink: 0;
}
.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.profile-name-row h1 {
  margin: 0;
}

.odyssey-publish-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(94, 234, 212, 0.06);
}
.odyssey-publish-banner p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.odyssey-modal {
  position: fixed;
  inset: 0;
  z-index: 10150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.odyssey-modal[hidden] {
  display: none !important;
}
body.odyssey-modal-open {
  overflow: hidden;
}
.odyssey-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--ams-scrim-heavy);
}
.odyssey-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--ams-glass-panel);
  box-shadow: var(--shadow);
}
.odyssey-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.odyssey-modal-step {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}
.odyssey-modal-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.odyssey-modal-desc {
  margin: 0 0 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.odyssey-modal-status {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--accent-2);
}
.odyssey-modal-cta.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}
@media (min-width: 1025px) {
  .page-odyssey .site-main {
    max-width: min(1480px, 98vw);
    margin-left: auto;
    margin-right: auto;
  }
.odyssey-page-body {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
  }
.odyssey-page-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
.odyssey-hero,
  .odyssey-page-intro .feed-hero {
    margin-bottom: 0;
  }
.odyssey-hud {
    margin-bottom: 0;
  }
.odyssey-map-shell {
    grid-column: 2;
    grid-row: 1;
    padding: 1.35rem 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    min-width: 0;
  }
.odyssey-map-toolbar {
    justify-content: center;
    margin-bottom: 1rem;
  }
.odyssey-map-kicker {
    text-align: center;
    font-size: 1.05rem;
  }
.odyssey-map-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
.odyssey-map-stage {
    width: 100%;
    max-width: 420px;
  }
.odyssey-map-preview {
    overflow-x: hidden;
    overflow-y: visible;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 6, 12, 0.65);
  }
.odyssey-planet-btn {
    --odyssey-orb: 3.15rem;
  }
.odyssey-portal-btn {
    --odyssey-portal: 3.25rem;
  }
.odyssey-row {
    gap: 0.55rem 0.35rem;
  }
.odyssey-segment-connector-line {
    width: 2px;
    height: 1.25rem;
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.15), rgba(94, 234, 212, 0.65), rgba(199, 125, 255, 0.45));
  }
}
@media (max-width: 360px) {
  .odyssey-row {
    gap: 0.45rem 0.25rem;
  }
.odyssey-planet-btn {
    --odyssey-orb: 2.55rem;
  }
.odyssey-planet-num {
    font-size: 0.88rem;
  }
.odyssey-portal-btn {
    --odyssey-portal: 2.75rem;
  }
.odyssey-portal-plus {
    font-size: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .odyssey-map-stars,
  .odyssey-node--current .odyssey-planet-halo,
  .odyssey-planet-pulse,
  .odyssey-node--portal.is-unlocked .odyssey-portal-rays,
  .odyssey-node--portal.is-unlocked .odyssey-portal-gate {
    animation: none;
  }
