@font-face {
  font-family: 'Fontin Regular';
  src: url('/assets/fonts/Fontin-Regular.woff') format('woff'),
       url('/assets/fonts/Fontin-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-obsidian: #0d0a0b;
  --bg-panel: #161112;
  --bg-elevated: #1d1517;
  --bg-input: #100c0d;
  --border-hair: #2d2224;
  --border-bronze: #5e4b42;
  --text-primary: #efe6dc;
  --text-muted: #a3948b;
  --accent-gold: #d4a257;
  --accent-crimson: #8f242c;
  --accent-crimson-hover: #a82d37;
  --font-display: 'Fontin Regular', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(143, 36, 44, 0.12), transparent 55%),
    var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  color: #f3d7aa;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 10, 11, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hair);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-wordmark-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transform: translateY(3px);
  filter: brightness(1.16) drop-shadow(0 1px 6px rgba(212, 162, 87, 0.14));
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  border: 0;
  background: transparent;
  padding: 6px 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-gold);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Stages */
.page-shell {
  width: 100%;
}

.global-banner {
  max-width: 920px;
  margin: 18px auto 0;
}

.view-section {
  width: 100%;
}

.content-stage {
  padding: 36px 20px 72px;
}

.content-wrap {
  margin: 0 auto;
  width: 100%;
}

.content-wrap-wide {
  max-width: 1140px;
}

.content-wrap-narrow {
  max-width: 920px;
}

/* Panels & HUD Corner Brackets */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hud-frame {
  border-color: var(--border-bronze);
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-gold);
  border-style: solid;
  pointer-events: none;
}

.hud-corner.tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hud-corner.tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.hud-corner.bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.hud-corner.br {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.page-display-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.96rem;
  justify-content: space-between;
}

.btn-xl {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.btn-crimson {
  background: var(--accent-crimson);
  border-color: #b43c46;
  color: #fdf7f2;
}

.btn-crimson:hover:not(:disabled) {
  background: var(--accent-crimson-hover);
}

.btn-bronze {
  background: #24191b;
  border-color: var(--border-bronze);
  color: var(--text-primary);
}

.btn-bronze:hover:not(:disabled) {
  background: #302124;
  border-color: var(--accent-gold);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-bronze);
  color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-gold);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger-ghost {
  background: transparent;
  border-color: rgba(158, 42, 51, 0.5);
  color: #fca5a5;
}

.btn-danger-ghost:hover:not(:disabled) {
  background: rgba(158, 42, 51, 0.18);
  border-color: #c83e49;
}

.dev-login-form {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border-radius: 6px;
  background: #110c0d;
  border: 1px solid var(--border-hair);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.text-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-hair);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.textarea-input {
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.form-error {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #fca5a5;
}

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

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

/* Alerts */
.alert-banner {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-bronze);
  background: #1d1416;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.alert-banner.alert-error {
  border-color: #9e2a33;
  background: #261013;
  color: #ffd7d9;
}

.alert-banner.alert-warn {
  border-color: #8f6c36;
  background: #1e170e;
}

/* Shared Section Headers & Editors */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.editor-panel {
  margin-bottom: 24px;
}

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

.editor-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--accent-gold);
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs-center {
  justify-content: center;
}

.filter-tab {
  border: 1px solid var(--border-hair);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-bronze);
}

.filter-tab.is-active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
}

/* Guide View */
.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.guide-search-wrap {
  width: 280px;
  max-width: 100%;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 76px;
  background: var(--bg-panel);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  padding: 10px;
}

.guide-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.guide-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.guide-nav-item.is-active {
  background: var(--bg-elevated);
  border-color: var(--border-bronze);
}

.guide-nav-topic {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.guide-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.guide-reader {
  min-height: 360px;
}

.reader-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reader-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.reader-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance;
}

.reader-lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 68ch;
}

.dev-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-hair);
  background: #080607;
  margin: 18px 0 22px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rich-article {
  max-width: 72ch;
}

.rich-article h3 {
  margin: 24px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hair);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rich-article h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rich-article p {
  margin: 0 0 12px;
  color: #dfd5cb;
  font-size: 0.95rem;
  line-height: 1.65;
}

.rich-article ul {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #dfd5cb;
  font-size: 0.94rem;
}

/* Changelog View (Inspired by atrocityUI layout in obsidian/bronze palette) */
.changelog-hero {
  text-align: center;
  margin-bottom: 28px;
}

.changelog-hero-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cl-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  overflow: hidden;
}

.cl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #130e10;
  border-bottom: 1px solid transparent;
}

.cl-card.is-open .cl-card-head {
  border-bottom-color: var(--border-hair);
}

.cl-toggle-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
}

.cl-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cl-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.cl-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.cl-card.is-open .cl-chevron {
  transform: rotate(180deg);
}

.cl-version {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cl-latest-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-bronze);
  padding: 1px 7px;
  border-radius: 4px;
}

.cl-category-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cl-date {
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.cl-dev-actions {
  padding-right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cl-card-body {
  padding: 20px 24px 24px;
}

.cl-summary {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cl-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cl-section {
  padding-top: 16px;
  border-top: 1px solid var(--border-hair);
}

.cl-section-title {
  margin: 0 0 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.cl-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #dfd5cb;
  font-size: 0.92rem;
  line-height: 1.55;
}

.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Brand */
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Top bar actions: social buttons + sign in */
.topbar-actions {
  gap: 10px;
}

.social-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 5px;
  color: #fff;
  transition: filter 140ms ease, transform 120ms ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.social-patreon {
  background: #f0475b;
}

.social-twitch {
  background: #6441a5;
}

.social-discord {
  background: #5865f2;
}

/* Home hero */
.home-stage {
  padding: 56px 20px 72px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 4vh;
}

.hero-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 28px rgba(143, 36, 44, 0.35));
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 500;
}

.hero-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.hero-tag-sep {
  width: 1px;
  height: 14px;
  background: var(--border-bronze);
}

.hero-headline {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-subline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-buttons .btn-xl {
  width: auto;
  min-width: 150px;
}

.btn-cta {
  background: var(--text-primary);
  color: #181012;
  border-color: var(--text-primary);
}

.btn-cta:hover {
  background: #fff;
  border-color: #fff;
}

.btn-secondary-cta {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-bronze);
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-gold);
}

.hero-buttons .is-unset {
  opacity: 0.45;
  border-style: dashed;
  cursor: default;
}

#btn-edit-home {
  margin-top: 28px;
}

/* Home editor */
.home-editor {
  max-width: 820px;
  margin: 36px auto 0;
}

.btn-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-editor-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(160px, 2fr) 104px auto;
  gap: 8px;
  align-items: center;
}

.btn-editor-controls {
  display: inline-flex;
  gap: 2px;
}

/* Login dialog */
.login-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--border-bronze);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text-primary);
}

.login-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.login-dialog .dev-login-form {
  margin: 0;
  max-width: none;
}

@media (max-width: 760px) {
  .btn-editor-row {
    grid-template-columns: 1fr 1fr;
  }

  .btn-editor-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-stage {
    padding: 32px 14px 56px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .form-grid-3,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 9px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-left {
    gap: 14px;
    flex-wrap: wrap;
  }

  .brand-wordmark-img {
    height: 31px;
    transform: translateY(2px);
  }

  .topbar-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 4px 1px;
  }

  .content-stage {
    padding: 24px 14px 56px;
  }

  .panel {
    padding: 20px 16px;
  }

  .btn-lg {
    padding: 10px 12px;
    font-size: 0.88rem;
    gap: 8px;
  }

  .cl-card-head {
    flex-wrap: wrap;
  }

  .cl-toggle-btn {
    padding: 14px 14px;
  }

  .cl-dev-actions {
    padding: 0 14px 12px;
  }

  .cl-card-body {
    padding: 16px;
  }

  .reader-top {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.section-showcase):not(.showcase-dot):not(.showcase-arrow):not(.showcase-zoom-hint):not(.lightbox-backdrop):not(.lightbox-stage):not(.lightbox-close):not(.lightbox-nav),
  *::before,
  *::after {
    transition: none !important;
  }
}

/* High-resolution supplied wordmark and site-wide editable footer */
.hero-title {
  width: min(100%, 510px);
  margin-bottom: 18px;
}
.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(120, 38, 20, 0.17));
}
.site-footer {
  margin-top: auto;
  width: 100%;
  padding: 0 24px 28px;
  text-align: center;
}
.site-footer-divider {
  height: 1px;
  max-width: 1100px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--border-bronze), transparent);
}
.site-footer-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.site-footer-text:empty { display: none; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.page-shell { flex: 1 0 auto; }
@media (max-width: 640px) {
  .hero-title { width: min(100%, 380px); }
  .site-footer { padding: 0 16px 24px; }
}
/* VAALAURAS — OBSIDIAN RELIC / 2026 visual refresh */
:root {
 --bg-obsidian:#080809;--bg-panel:#141112;--bg-elevated:#21191a;--bg-input:#0d0b0c;
 --border-hair:#302526;--border-bronze:#77604a;--text-primary:#f1e9df;--text-muted:#aa9990;
 --accent-gold:#d9aa6b;--accent-crimson:#912d32;--accent-crimson-hover:#b13a40;
}
html{scroll-behavior:smooth}
body{background:#09090a;color:var(--text-primary);position:relative;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;transform:translateZ(0);background:radial-gradient(ellipse 63% 42% at 50% -10%,#5d222128,transparent 85%),repeating-linear-gradient(90deg,transparent 0,transparent 95px,#b87c2b05 96px),linear-gradient(180deg,#0d0a0b,#080809 56%)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;transform:translateZ(0);opacity:.17;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E")}
::selection{background:#b17648;color:#110e0d}
:focus-visible{outline:2px solid #e8b877;outline-offset:4px}
.topbar{background:#0c0b0de8;border-bottom:1px solid #76533b55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transform:translateZ(0)}
.topbar::after{content:"";position:absolute;inset:auto 0 -1px;height:1px;background:linear-gradient(90deg,transparent,#a86a433b 50%,transparent);pointer-events:none}
.topbar-inner{max-width:1340px;min-height:78px;padding:12px 30px;gap:24px}
.topbar-left{gap:52px}.brand{gap:9px}.brand-logo{width:41px;height:41px;filter:drop-shadow(0 0 12px #aa442a55)}
.brand-wordmark-img{height:44px;max-width:172px;filter:brightness(1.19) drop-shadow(0 1px 9px #b55e3344)}
.topbar-nav{gap:5px}.topbar-nav .nav-link{padding:12px 17px;font-size:.83rem;letter-spacing:.07em;text-transform:uppercase;font-weight:650;border:1px solid transparent;border-radius:4px;transition:background .2s,color .2s,border-color .2s}
.topbar-nav .nav-link:hover{background:#c9a0700d;color:#f7dfbd}
.topbar-nav .nav-link.is-active{background:#cb884b14;color:#e9b978;border-color:#c89a553d}
.topbar-actions{gap:18px}.social-row{gap:8px}.social-btn{width:34px;height:34px;border-radius:6px;background:#1a1517!important;border:1px solid #493533;color:#bba8a1;transition:transform .2s,color .2s,border-color .2s,background .2s}
.social-btn:hover{transform:translateY(-2px);border-color:#b88b61;color:#f2d2a6;background:#302020!important}
#btn-open-login,#btn-signout{background:linear-gradient(180deg,#4c302b,#2b1919);border:1px solid #986744;color:#f5d3aa;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;padding:10px 17px;box-shadow:inset 0 1px #f1ce9255}
#btn-open-login:hover,#btn-signout:hover{background:#5b3530}
.home-stage{padding:0 26px 94px;position:relative;overflow:hidden}
.home-stage::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:min(1020px,100vw);height:770px;background:radial-gradient(ellipse at 50% 31%,#8c34202b,transparent 48%),radial-gradient(ellipse at 50% 52%,#c37c2920,transparent 58%);pointer-events:none}
.hero-aura{position:absolute;left:50%;top:-24px;transform:translateX(-50%);width:min(820px,100vw);aspect-ratio:1;opacity:.34;pointer-events:none;border-radius:50%;background:repeating-radial-gradient(circle,#ad7b3b15 0 1px,transparent 1px 82px),conic-gradient(from 22deg,transparent 0 20deg,#85553618 21deg 22deg,transparent 23deg 60deg,#85553619 61deg 62deg,transparent 63deg 100deg,#85553619 101deg 102deg,transparent 103deg);mask-image:radial-gradient(circle,#000 12%,transparent 68%)}
.hero{position:relative;max-width:850px;padding:38px 10px 25px;margin:auto}
.section-kicker{display:flex;align-items:center;justify-content:center;gap:14px;color:#c5a075;font-family:var(--font-display);font-size:10pt;letter-spacing:.16em;font-weight:400}
.hero-logo{width:158px;height:158px;margin:0 0 2px;filter:drop-shadow(0 19px 36px #000b) drop-shadow(0 0 44px #c653374d);animation:relic-arrive .9s ease-out both}
.hero-title{width:min(100%,600px);margin:0 0 16px}.hero-wordmark{filter:brightness(1.12) drop-shadow(0 13px 30px #100605)}
.hero-tags{gap:10px;margin:0 0 16px}.hero-tag{border:1px solid #a179463b;background:#c1884420;padding:5px 11px;border-radius:2px;font-family:var(--font-display);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:#e9be83}
.hero-tag::before{width:5px;height:5px}.hero-tag-sep{display:none}
.hero-headline{font-size:clamp(1.27rem,2.3vw,1.72rem);line-height:1.45;font-weight:400;letter-spacing:0;margin:2px auto 12px;max-width:720px;text-wrap:balance}
.hero-subline{font-size:1.03rem;line-height:1.7;color:#ae9b96;max-width:600px;margin:0 auto;text-wrap:balance}
.hero-buttons{gap:14px;margin-top:32px}.hero-buttons .btn-xl{min-width:195px;padding:15px 28px;border-radius:3px;font-size:.85rem;text-transform:uppercase;letter-spacing:.115em;min-height:54px}
.btn-cta{color:#fff0dc;background:linear-gradient(135deg,#9a3a31,#672525);border:1px solid #d26e54;box-shadow:inset 0 1px #f7aa7555,0 8px 30px #7d241a3d}
.btn-cta:hover{background:linear-gradient(135deg,#b64738,#7d2c2a);border-color:#ef9b74;transform:translateY(-2px);box-shadow:0 12px 35px #8d2b2344}
.btn-secondary-cta{background:#1a1516bd;border:1px solid #806549;color:#e7c79f}
.btn-secondary-cta:hover{background:#38241f;color:#fff1d9}
.hero-footnote{margin:40px auto 0;display:flex;align-items:center;justify-content:center;gap:18px;font:400 10pt var(--font-display);letter-spacing:.12em;color:#846d60}.hero-footnote-line{width:36px;height:1px;flex-shrink:0;background:linear-gradient(90deg,transparent,#856e5c)}.hero-footnote-line:last-child{transform:rotate(180deg)}
.home-content{position:relative;max-width:1170px;margin:76px auto 0}.section-kicker{color:#bc9162}.kicker-dash{height:1px;width:24px;background:#9a7147}
.home-section-title{font:400 clamp(2.2rem,4.5vw,3.65rem)/1.18 var(--font-display);letter-spacing:-.01em;text-align:center;margin:18px 0 12px;color:#f4e7d6}.home-section-title em,.explore-copy em{color:#d9a367;font-weight:400;font-style:normal}
.home-section-intro{max-width:610px;margin:0 auto 44px;text-align:center;color:#ac9c96;font-size:1.03rem;line-height:1.85}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.feature-card{position:relative;min-height:295px;padding:32px 31px 30px;border:1px solid #514037;background:linear-gradient(145deg,#211719f0,#100e0ff5 68%);box-shadow:inset 0 1px #d2a06e14,0 15px 45px #0003;overflow:hidden;transition:border-color .25s,transform .25s,box-shadow .25s}
.feature-card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#bd8150aa,transparent)}
.feature-card::after{content:"";position:absolute;right:-55px;bottom:-70px;width:180px;height:180px;border:1px solid #b57e3620;border-radius:50%;box-shadow:0 0 0 28px #b57e3608,0 0 0 56px #b57e3606;pointer-events:none}
.feature-card:hover{transform:translateY(-5px);border-color:#a77a54;box-shadow:0 24px 65px #0008}
.feature-number{font:400 .72rem var(--font-display);letter-spacing:.15em;color:#b69776}.feature-icon{margin:20px 0 16px;width:55px;height:55px;display:grid;place-items:center;color:#cc9361}
.feature-icon svg{width:46px;height:46px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 14px #a45a3630)}
.feature-card h3{font:400 1.28rem var(--font-display);color:#f1ddc3;margin:0 0 10px;letter-spacing:0}.feature-card p{margin:0;font-size:.91rem;color:#a99b97;line-height:1.75;max-width:320px}
.explore-panel{margin-top:28px;padding:45px 49px;border:1px solid #6f4b37;background:radial-gradient(ellipse at 92% 12%,#953e2625,transparent 50%),linear-gradient(105deg,#241719,#130e0f 70%);display:flex;align-items:center;justify-content:space-between;gap:35px;box-shadow:inset 0 1px #db9d5526}
.explore-copy .section-kicker{justify-content:flex-start;font-size:10pt}.explore-copy h2{margin:11px 0 6px;font:400 clamp(1.7rem,3vw,2.35rem)/1.25 var(--font-display);letter-spacing:-.01em}.explore-copy p{margin:0;color:#ac9990;font-size:.9rem}.explore-actions{display:flex;gap:10px;flex-wrap:wrap}
.explore-btn{padding:14px 19px;border-radius:3px;border:1px solid #ac7850;background:#9c432e;color:#fff0df;font-size:.8rem;letter-spacing:.04em;gap:14px}
.explore-btn:hover{background:#bd5537;transform:translateY(-2px)}.explore-btn-secondary{background:#231b1b;border-color:#76583e;color:#e9cba3}.explore-btn-secondary:hover{background:#45302a}
.content-stage{padding:72px 26px 105px;min-height:70vh}.content-wrap-wide{max-width:1170px}.content-wrap-narrow{max-width:960px}
.page-display-title{font-weight:400;font-size:clamp(2.5rem,5vw,4rem);letter-spacing:-.015em;color:#f1e0c9}
.page-subtitle{color:#aa9990;line-height:1.75;max-width:650px}.section-header-row{margin-bottom:36px;padding-bottom:30px;border-bottom:1px solid #5e463344}
.panel,.guide-sidebar,.cl-card{background:linear-gradient(143deg,#1d1517,#100e10 85%);border:1px solid #4d3730;border-radius:4px;box-shadow:inset 0 1px #d59d4d12,0 12px 30px #0002}
.panel{padding:28px}.guide-sidebar{padding:10px}.guide-layout{gap:20px;grid-template-columns:290px minmax(0,1fr)}.guide-nav-item{border-radius:3px;padding:13px}.guide-nav-item:hover{background:#3b282133}.guide-nav-item.is-active{border-color:#9b66434d;background:#6c382725}
.reader-title{font-weight:400;color:#f1d7b6}.reader-lead{color:#baaba0}.rich-article{line-height:1.85}.rich-article h3{color:#e2b47e}
.guide-toolbar{margin-bottom:22px}.filter-tab{border-radius:3px;transition:all .18s}.filter-tab.is-active{background:#51362640;border-color:#c7945b;color:#f8d4a2}
.text-input{border-radius:3px;background:#0e0d0e;border-color:#594139;color:#f4e7dc;transition:border-color .2s,box-shadow .2s}.text-input:focus{border-color:#b98e60;box-shadow:0 0 0 3px #bd92501a;outline:none}
.cl-card{border-color:#51392e;transition:border-color .2s,transform .2s}.cl-card:hover{border-color:#886146}.cl-card-head{background:#1b1414}.cl-toggle-btn{padding:21px 25px}.cl-card-body{padding:28px}.cl-latest-tag{background:#aa7b3224;color:#e5b879}.cl-section-title{color:#e0a966}
.btn{transition:transform .18s,background .18s,border-color .18s,color .18s,box-shadow .18s}.btn-crimson{background:linear-gradient(135deg,#a23e34,#772a2b);border-color:#bf6350}.btn-bronze{border-color:#836044}.btn-outline{border-color:#795a46}
.login-dialog{border-radius:5px;border:1px solid #aa7853;background:#181213;box-shadow:0 32px 130px #000c}.login-dialog::backdrop{backdrop-filter:blur(8px);background:#000b}
.site-footer{padding:25px 26px 35px;background:#0a090af5;border-top:1px solid #6c463537}.footer-top{max-width:1170px;margin:0 auto 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-brand{display:flex;gap:9px;align-items:center;font:400 .78rem var(--font-display);letter-spacing:.18em;color:#b89c81}.footer-brand img{filter:drop-shadow(0 0 9px #8f3e32aa)}.footer-nav{display:flex;align-items:center;gap:22px}.footer-link{border:0;background:none;color:#ac9990;font:600 .76rem var(--font-sans);letter-spacing:.07em;cursor:pointer;padding:6px;text-transform:uppercase}.footer-link:hover{color:#e6be88}.site-footer-divider{max-width:1170px;margin-bottom:23px;background:linear-gradient(90deg,transparent,#755340,transparent)}.site-footer-text{font-size:.8rem;color:#94847c}
@keyframes relic-arrive{from{opacity:0;transform:translateY(15px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1000px){.topbar-left{gap:20px}.topbar-inner{padding-inline:20px}.topbar-actions{gap:8px}.social-row{gap:5px}.feature-card{padding:26px 23px}.explore-panel{padding:35px}.explore-actions{justify-content:flex-start}}
@media(max-width:760px){.topbar-inner{min-height:auto;flex-wrap:wrap;gap:10px}.topbar-left{width:100%;justify-content:space-between;flex-wrap:wrap}.topbar-actions{width:100%;justify-content:space-between}.topbar-nav{gap:2px}.topbar-nav .nav-link{padding:10px;font-size:.75rem}.brand-wordmark-img{height:34px}.brand-logo{width:32px;height:32px}.hero{padding-top:26px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:0;padding:25px 28px}.explore-panel{flex-direction:column;align-items:flex-start}.home-content{margin-top:58px}.content-stage{padding-top:40px}.footer-top{flex-wrap:wrap}}
@media(max-width:480px){.topbar-inner{padding:10px 12px}.brand-wordmark-img{height:28px;max-width:125px}.topbar-nav .nav-link{padding:9px 7px;font-size:.69rem}.social-btn{width:31px;height:31px}.home-stage{padding-inline:16px}.hero{padding:20px 0 20px}.hero-logo{width:127px;height:127px}.hero-title{width:min(100%,365px)}.hero-headline{font-size:1.19rem}.hero-subline{font-size:.9rem}.hero-buttons{width:100%}.hero-buttons .btn-xl{width:100%;min-width:0}.hero-footnote{font-size:10pt;letter-spacing:.08em;gap:10px}.hero-footnote-line{display:none}.section-kicker{font-size:10pt;letter-spacing:.12em}.home-section-intro{font-size:.9rem}.feature-card{padding:25px}.explore-panel{padding:25px 23px}.explore-actions{width:100%}.explore-btn{width:100%;justify-content:space-between}.site-footer{padding-inline:16px}.footer-nav{gap:10px}.footer-link{font-size:.69rem}}
@media(prefers-reduced-motion:reduce){.hero-logo{animation:none}.feature-card:hover,.btn:hover{transform:none}}

/* Admin full-home editor */
.editor-subheading{font:400 1.18rem var(--font-display);color:#e9bb86;letter-spacing:.02em;border-bottom:1px solid #644530;margin:30px 0 19px;padding-bottom:10px}
.feature-editor-list{display:grid;gap:14px;margin:12px 0}
.feature-editor-card{border:1px solid #624938;background:#170f11;padding:20px;border-radius:5px;display:grid;gap:10px}
.feature-editor-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#d5ae82}
.feature-editor-actions{display:flex;gap:5px}
.feature-editor-card .field-group{margin:0}
.feature-editor-card textarea{resize:vertical}
@media(min-width:900px){.feature-editor-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.feature-editor-card{padding:14px}.feature-editor-actions{gap:1px}}


/* --- Homepage image support + smoother color background refresh --- */
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(186, 92, 57, 0.16), transparent 34%),
    radial-gradient(circle at 14% 18%, rgba(154, 52, 44, 0.12), transparent 26%),
    linear-gradient(180deg, #0d090a 0%, #090809 50%, #070708 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42rem 22rem at 50% 0%, rgba(203, 123, 73, 0.13), transparent 62%),
    radial-gradient(28rem 18rem at 18% 16%, rgba(127, 34, 41, 0.14), transparent 64%),
    radial-gradient(34rem 20rem at 82% 12%, rgba(109, 42, 25, 0.12), transparent 64%),
    linear-gradient(180deg, #0c090a 0%, #09080a 55%, #070708 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(30rem 20rem at 50% 14%, rgba(210, 128, 76, 0.07), transparent 70%),
    radial-gradient(26rem 20rem at 50% 42%, rgba(110, 24, 26, 0.07), transparent 74%);
  opacity: 1;
}
.home-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(1180px, 100vw);
  height: 880px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(202, 122, 74, 0.11), transparent 30%),
    radial-gradient(ellipse at 50% 36%, rgba(153, 43, 44, 0.09), transparent 42%),
    radial-gradient(ellipse at 12% 30%, rgba(113, 43, 26, 0.08), transparent 28%),
    radial-gradient(ellipse at 88% 28%, rgba(113, 43, 26, 0.08), transparent 28%);
}
.hero-aura {
  opacity: .45;
  background:
    radial-gradient(circle at 50% 50%, rgba(228, 168, 103, 0.11) 0%, rgba(228, 168, 103, 0.06) 16%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(153, 62, 44, 0.18) 0%, transparent 64%),
    conic-gradient(from 0deg,
      transparent 0deg 20deg,
      rgba(171, 110, 65, 0.10) 20deg 22deg,
      transparent 22deg 45deg,
      rgba(130, 76, 48, 0.11) 45deg 47deg,
      transparent 47deg 68deg,
      rgba(171, 110, 65, 0.09) 68deg 70deg,
      transparent 70deg 360deg);
  mask-image: radial-gradient(circle, transparent 0 12%, rgba(0,0,0,.9) 20%, rgba(0,0,0,.75) 52%, transparent 74%);
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(191, 136, 82, 0.24);
  background: linear-gradient(180deg, rgba(35, 23, 24, 0.92), rgba(16, 13, 15, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 224, 191, 0.05), 0 16px 40px rgba(0, 0, 0, 0.22);
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 32%, rgba(0,0,0,0.12));
  pointer-events: none;
}
.feature-media:hover .showcase-zoom-hint,
.feature-media:focus-within .showcase-zoom-hint {
  opacity: 1;
  transform: scale(1);
}
.feature-media-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.feature-card-media-editor {
  border-top: 1px solid rgba(170, 122, 79, .17);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.feature-card-media-editor > .btn {
  justify-self: start;
}
.feature-media-preview {
  flex: 0 0 96px;
  width: 96px;
  height: 54px;
  border: 1px solid #70533c;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #100c0d;
  color: #a3948b;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
}
.feature-media-preview img,
.feature-media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-lower {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
}
.feature-copy {
  display: grid;
  gap: 10px;
}
.feature-copy h3,
.feature-copy p {
  margin: 0;
}
@media (max-width: 720px) {
  .feature-lower {
    grid-template-columns: 1fr;
  }
}


/* Custom/hidden homepage feature icons */
.feature-icon-custom img { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 12px rgba(192,113,64,.25)); }
.feature-lower.feature-no-icon { display:block; }
.feature-icon-editor { border-top:1px solid rgba(170,122,79,.17); padding-top:12px; }
.custom-icon-controls { display:grid; gap:10px; min-width:0; }
.custom-icon-controls.hidden { display:none !important; }
.feature-upload-row { display:flex; gap:12px; align-items:center; }
.feature-icon-file { min-width:0; flex:1; padding:8px; }
.feature-icon-preview { flex:0 0 72px; width:72px; height:72px; border:1px solid #70533c; border-radius:6px; display:grid; place-items:center; background:#100c0d; color:#a3948b; font-size:11px; text-align:center; overflow:hidden; }
.feature-icon-preview img { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:560px) { .feature-upload-row { align-items:stretch; flex-direction:column; } }

/* Seamless hero glow: fill the entire page width rather than painting a
   1180px rectangle whose edges remain visible on large desktop monitors. */
.home-stage::before {
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  inset: 0 0 auto;
  transform: none;
  width: 100%;
  height: 1050px;
  background:
    radial-gradient(ellipse 45% 32% at 50% 21%, rgba(171, 77, 47, .16), transparent 93%),
    radial-gradient(ellipse 33% 28% at 50% 38%, rgba(126, 34, 38, .12), transparent 94%),
    radial-gradient(ellipse 28% 24% at 38% 22%, rgba(101, 43, 27, .055), transparent 96%),
    radial-gradient(ellipse 28% 24% at 62% 22%, rgba(101, 43, 27, .055), transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
}

/* Optional section-level screenshot carousels with bottom left/right cycling arrows */
.showcase-carousel {
  margin: 28px auto 0;
  width: min(100%, 900px);
  display: block;
  outline: none;
}
.showcase-carousel .section-showcase {
  position: relative;
  margin: 0;
  width: 100%;
  border: 1px solid rgba(179,121,78,.37);
  border-radius: 8px;
  overflow: hidden;
  background: #110e10;
  box-shadow: 0 25px 65px rgba(0,0,0,.35);
  cursor: zoom-in;
  transition: height 480ms cubic-bezier(0.16, 1, 0.3, 1), border-color 320ms ease, box-shadow 420ms ease;
}
.showcase-carousel .section-showcase:hover,
.showcase-carousel .section-showcase:focus-visible {
  border-color: rgba(233, 180, 118, 0.72);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48), 0 0 26px rgba(212, 138, 69, 0.16);
}
.showcase-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(214, 159, 98, 0.55);
  background: rgba(14, 10, 11, 0.78);
  color: #f4d6ad;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-zoom-hint svg {
  width: 16px;
  height: 16px;
}
.showcase-carousel .section-showcase:hover .showcase-zoom-hint,
.showcase-carousel .section-showcase:focus-visible .showcase-zoom-hint {
  opacity: 1;
  transform: scale(1);
}
.feature-media-img {
  cursor: zoom-in;
}
.showcase-carousel .section-showcase::after {
  content: "";
  position: absolute;
  inset: -10% -45%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    108deg,
    transparent 34%,
    rgba(220, 166, 102, 0.08) 46%,
    rgba(255, 218, 162, 0.22) 50%,
    rgba(191, 68, 56, 0.1) 54%,
    transparent 66%
  );
  transform: translateX(-100%);
  z-index: 3;
}
.showcase-carousel .section-showcase.is-switching-next,
.showcase-carousel .section-showcase.is-switching-prev {
  border-color: rgba(233, 180, 118, 0.72);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 138, 69, 0.18);
}
.showcase-carousel .section-showcase.is-switching-next::after {
  animation: showcase-sheen-next 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.showcase-carousel .section-showcase.is-switching-prev::after {
  animation: showcase-sheen-prev 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.section-showcase img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}
.section-showcase img.showcase-outgoing {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.showcase-enter-next {
  animation: showcase-enter-next 520ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.showcase-exit-next {
  animation: showcase-exit-next 520ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.showcase-enter-prev {
  animation: showcase-enter-prev 520ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.showcase-exit-prev {
  animation: showcase-exit-prev 520ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
@keyframes showcase-enter-next {
  0% {
    opacity: 0;
    transform: translate3d(42%, 0, 0) scale3d(0.96, 0.96, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}
@keyframes showcase-exit-next {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-28%, 0, 0) scale3d(0.94, 0.94, 1);
  }
}
@keyframes showcase-enter-prev {
  0% {
    opacity: 0;
    transform: translate3d(-42%, 0, 0) scale3d(0.96, 0.96, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}
@keyframes showcase-exit-prev {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(28%, 0, 0) scale3d(0.94, 0.94, 1);
  }
}
@keyframes showcase-sheen-next {
  0% { opacity: 0; transform: translate3d(-85%, 0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(85%, 0, 0); }
}
@keyframes showcase-sheen-prev {
  0% { opacity: 0; transform: translate3d(85%, 0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-85%, 0, 0); }
}

.hero-showcase { width: min(100%, 740px); margin-top: 32px; }
.feature-showcase { margin: -12px auto 38px; width: min(100%, 900px); }

.showcase-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.showcase-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.showcase-dot {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(179, 121, 78, 0.28);
  cursor: pointer;
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms ease, box-shadow 220ms ease;
}
.showcase-dot:hover {
  background: rgba(231, 199, 159, 0.55);
}
.showcase-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, #c6854d, #f1c68c);
  box-shadow: 0 0 10px rgba(231, 180, 114, 0.38);
}
.showcase-arrow {
  width: 42px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #6b4e3e;
  background: linear-gradient(180deg, #211719, #130e10);
  color: #e7c79f;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 120ms ease, box-shadow 180ms ease;
}
.showcase-arrow svg {
  width: 20px;
  height: 20px;
}
.showcase-arrow:hover {
  border-color: var(--accent-gold);
  color: #fff1d9;
  background: #2f2022;
  box-shadow: 0 0 14px rgba(212, 138, 69, 0.2);
}
.showcase-arrow:active {
  transform: scale(0.94);
}
.showcase-counter {
  min-width: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .showcase-nav {
    gap: 10px;
    margin-top: 12px;
  }
  .showcase-arrow {
    width: 38px;
    height: 36px;
  }
  .showcase-dot {
    width: 12px;
  }
  .showcase-dot.is-active {
    width: 24px;
  }
}

.section-media-url-row { display: flex; gap: 8px; align-items: center; }
.section-media-url-row .text-input { flex: 1 1 auto; min-width: 0; }
.section-media-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.section-media-controls input[type=file] { flex: 1 1 250px; min-width: 0; max-width: 460px; }
.section-media-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.section-media-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #4d392e;
  border-radius: 6px;
  background: #100c0d;
}
.section-media-item img {
  width: 84px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #6b4e3e;
  background: #080607;
  display: block;
}
.section-media-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-media-item-actions {
  display: inline-flex;
  gap: 2px;
}

/* Hero polish: remove the hard triangular rays behind the logo.
   Keep the ambient bronze/crimson glow without visible spokes. */
.hero-aura {
  background:
    radial-gradient(circle at 50% 44%, rgba(205, 118, 71, 0.17) 0%, rgba(155, 59, 45, 0.08) 26%, transparent 66%),
    radial-gradient(circle at 50% 55%, rgba(116, 35, 37, 0.10) 0%, transparent 72%);
  opacity: .65;
}

/* Maximized screenshot lightbox */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.5vw, 44px);
}
.screenshot-lightbox.hidden {
  display: none !important;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 45%, rgba(28, 16, 16, 0.88), rgba(6, 5, 6, 0.94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.screenshot-lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}
.screenshot-lightbox.is-closing .lightbox-backdrop {
  opacity: 0;
  transition-duration: 280ms;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #8a6449;
  background: linear-gradient(180deg, rgba(39, 25, 25, 0.96), rgba(19, 13, 14, 0.96));
  color: #f4d9b5;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px rgba(246, 206, 152, 0.18);
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.92);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 180ms ease;
}
.lightbox-close svg {
  width: 16px;
  height: 16px;
}
.screenshot-lightbox.is-open .lightbox-close {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.screenshot-lightbox.is-closing .lightbox-close {
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(0.92);
  transition-duration: 220ms;
}
.lightbox-close:hover {
  border-color: #ef9b74;
  background: linear-gradient(180deg, #5e2c26, #351918);
  color: #fff3e1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 20px rgba(201, 98, 63, 0.32);
}
.lightbox-close:active {
  transform: scale(0.95);
}
.lightbox-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(94vw, 1520px);
  max-height: 92vh;
  pointer-events: none;
}
.lightbox-stage {
  position: relative;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(226, 169, 107, 0.52);
  background: #0c090a;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.88), 0 0 38px rgba(196, 114, 58, 0.18);
  overflow: hidden;
  opacity: 1;
  transform-origin: center center;
  will-change: transform, opacity;
  pointer-events: auto;
}
.lightbox-stage::after {
  content: "";
  position: absolute;
  inset: -10% -45%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    108deg,
    transparent 34%,
    rgba(220, 166, 102, 0.08) 46%,
    rgba(255, 218, 162, 0.22) 50%,
    rgba(191, 68, 56, 0.1) 54%,
    transparent 66%
  );
  transform: translate3d(-100%, 0, 0);
  z-index: 3;
}
.lightbox-stage.is-switching-next::after {
  animation: showcase-sheen-next 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lightbox-stage.is-switching-prev::after {
  animation: showcase-sheen-prev 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lightbox-image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(92vw, 1480px);
  max-height: calc(90vh - 82px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}
video.lightbox-image {
  width: min(88vw, 1280px);
  max-height: calc(90vh - 82px);
  background: #000;
  outline: none;
}
.lightbox-stage img.showcase-outgoing {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.lightbox-nav {
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1) 60ms, transform 340ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}
.screenshot-lightbox.is-open .lightbox-nav {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.screenshot-lightbox.is-closing .lightbox-nav {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition-delay: 0ms;
  transition-duration: 200ms;
}
@media (max-width: 640px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
  }
  .lightbox-image {
    max-width: 96vw;
    max-height: calc(88vh - 84px);
  }
}
