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

:root {
  --background: 240 11% 5%;
  --foreground: 42 38% 95%;
  --primary: 44 61% 59%;
  --secondary: 240 13% 9%;
  --muted: 225 21% 7%;
  --muted-foreground: 222 11% 65%;
  --card: 234 19% 11%;
  --border: 44 25% 30%;
  --gold-glow: 45 85% 72%;
  --ink-dark: 225 15% 5%;

  --bg: hsl(var(--background));
  --bg-soft: hsl(var(--secondary));
  --bg-panel: hsl(var(--card) / 0.92);
  --gold: hsl(var(--primary));
  --gold-bright: hsl(var(--gold-glow));
  --muted-text: hsl(var(--muted-foreground));
  --text: hsl(var(--foreground));
  --danger: hsl(0 46% 56%);
  --accent: hsl(190 36% 35%);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, hsl(var(--gold-glow) / 0.18), transparent 46%),
    radial-gradient(circle at 80% 0%, hsl(190 36% 35% / 0.18), transparent 48%),
    radial-gradient(circle at 50% 85%, hsl(var(--primary) / 0.12), transparent 55%),
    linear-gradient(180deg, hsl(var(--ink-dark)), hsl(var(--background)));
  z-index: -1;
}

.bg-ink-wash {
  background:
    radial-gradient(circle at 15% 10%, hsl(var(--gold-glow) / 0.18), transparent 46%),
    radial-gradient(circle at 80% 0%, hsl(210 35% 35% / 0.14), transparent 48%),
    radial-gradient(circle at 50% 85%, hsl(var(--primary) / 0.12), transparent 55%),
    linear-gradient(180deg, hsl(var(--ink-dark)), hsl(var(--background)));
}

.text-gradient-gold {
  background: linear-gradient(110deg, hsl(var(--primary)), hsl(var(--gold-glow)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-gold {
  box-shadow: 0 0 24px hsl(var(--gold-glow) / 0.25);
}

.border-ink {
  border: 1px solid hsl(var(--border) / 0.8);
}

.card-martial {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.92));
  border: 1px solid hsl(var(--border) / 0.8);
  box-shadow: var(--shadow);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 hsl(var(--gold-glow) / 0);
  }
  50% {
    box-shadow: 0 0 24px hsl(var(--gold-glow) / 0.35);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-up {
  animation: fade-up 0.8s ease both;
}

.animate-glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.narrow {
  width: min(520px, 92%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  box-shadow: 0 12px 30px hsl(var(--ink-dark) / 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  min-height: 68px;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-family: 'Cinzel', serif;
}

.logo-mark {
  font-size: 1.35rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: linear-gradient(110deg, hsl(var(--primary)), hsl(var(--gold-glow)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-text);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted-text);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link:hover {
  background: hsl(var(--secondary) / 0.6);
  border: 1px solid hsl(var(--border) / 0.6);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.65rem;
  line-height: 1;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-form {
  margin: 0;
}

.muted {
  color: var(--muted-text);
}

.profile-menu {
  display: inline-flex;
  align-items: center;
  z-index: 5;
}

.profile-toggle {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
}

.profile-menu.is-open .profile-toggle {
  color: var(--gold-bright);
  border-color: hsl(var(--gold-glow) / 0.7);
}

.profile-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 180px;
  padding: 0.35rem;
  background: hsl(var(--card) / 0.98);
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: 14px;
  box-shadow: 0 18px 40px hsl(var(--ink-dark) / 0.6);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  z-index: 50;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown form {
  margin: 0;
  width: 100%;
}

.notification-link {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  display: inline-flex;
  align-items: center;
  position: relative;
}


.notification-list {
  display: grid;
  gap: 0.35rem;
}

.notification-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.6);
  color: var(--text);
  text-decoration: none;
  background: hsl(var(--muted) / 0.25);
}

.notification-item:hover {
  border-color: hsl(var(--border) / 0.9);
  background: hsl(var(--muted) / 0.5);
}

.notification-item.is-unread {
  border-color: hsl(var(--gold-glow) / 0.6);
  background: hsl(var(--gold-glow) / 0.1);
}

.notification-item.is-unread:hover {
  border-color: hsl(var(--border) / 0.9);
  background: hsl(var(--muted) / 0.5);
}

.notification-item.is-unread .notification-title {
  font-weight: 700;
}

.notification-more {
  margin-top: 1rem;
  align-self: flex-start;
}

.notifications-page .panel:hover {
  transform: translateY(var(--reveal-offset, 0px));
  border-color: hsl(var(--border) / 0.8);
  box-shadow: var(--shadow);
}

.notifications-page .panel:hover::after {
  opacity: 0;
}

.notification-item.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.notification-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.notification-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.notification-empty {
  padding: 0.6rem 0.7rem;
  text-align: center;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--muted-text);
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.nav-icon,
.menu-icon,
.footer-icon,
.profile-icon,
.profile-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: inherit;
}

.nav-icon {
  opacity: 0.85;
}

.menu-icon {
  margin-right: 0.5rem;
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.menu-icon i,
.footer-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.profile-link:hover {
  color: var(--text);
  background: hsl(var(--primary) / 0.14);
  border-color: hsl(var(--primary) / 0.35);
}

.profile-link-danger {
  color: var(--danger);
}

.profile-link-danger:hover {
  color: hsl(0 85% 75%);
  background: hsl(0 70% 45% / 0.2);
  border-color: hsl(0 65% 55% / 0.6);
}

.main {
  padding-top: 5rem;
  padding-bottom: 3rem;
  flex: 1;
}

.hero {
  padding: 3.75rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.lede {
  color: var(--muted-text);
  max-width: 55ch;
  margin-bottom: 1.5rem;
}

.hero-panel {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.92));
  padding: 2rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid hsl(var(--border) / 0.8);
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.hero-panel-inner ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-text);
}

.section {
  padding: 3.5rem 0;
}

.editor-page .section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-search {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: nowrap;
}

.filter-search input {
  min-width: 0;
  width: auto;
  flex: 1 1 260px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--muted) / 0.5);
  color: var(--text);
}

.filter-search .btn {
  min-width: 110px;
}

.filter-tabs .btn {
  min-width: 120px;
  justify-content: center;
  text-align: center;
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border) / 0.9);
}

.filter-tabs .btn.active {
  background: hsl(var(--primary));
  color: hsl(45 25% 12%);
  border-color: hsl(var(--primary));
  box-shadow: none;
}

.filter-search .btn {
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border) / 0.9);
}

.card-actions .btn-ghost,
.build-actions .btn-ghost,
.detail-actions .btn-ghost {
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border) / 0.9);
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: hsl(var(--border) / 0.9);
  margin: 0 0.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.92));
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid hsl(var(--border) / 0.8);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.card::after,
.panel::after,
.hero-panel::after,
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, hsl(var(--gold-glow) / 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, hsl(190 36% 35% / 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover,
.panel:hover,
.hero-panel:hover,
.resource-card:hover {
  transform: translateY(calc(var(--reveal-offset, 0px) - 4px));
  border-color: hsl(var(--gold-glow) / 0.55);
  box-shadow: 0 26px 60px hsl(var(--ink-dark) / 0.6);
}

.card:hover::after,
.panel:hover::after,
.hero-panel:hover::after,
.resource-card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.25rem;
  color: var(--text);
  text-shadow: 0 2px 10px hsl(var(--ink-dark) / 0.45);
}

.community-card {
  padding: 0;
  gap: 0;
}

.community-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.community-card-link:focus-visible {
  outline: 2px solid hsl(var(--gold-glow) / 0.6);
  outline-offset: 4px;
  border-radius: 14px;
}

.community-card-header {
  display: grid;
  gap: 0.25rem;
  align-items: start;
}

.community-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.community-card-author {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.85rem;
}

.community-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.community-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  padding-left: 0.75rem;
}

.community-meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: hsl(var(--gold-glow) / 0.65);
}

.community-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.community-tag {
  background: hsl(var(--muted) / 0.6);
  border: 1px solid hsl(var(--border) / 0.55);
  color: var(--text);
  font-size: 0.72rem;
}

.community-card-footer {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  color: var(--muted-text);
  font-size: 0.85rem;
}

.community-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.community-stat .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.card-body {
  display: grid;
  gap: 0.8rem;
}

.auth-card {
  padding: 2.1rem;
}

.auth-card h2 {
  color: var(--text);
  text-shadow: 0 2px 10px hsl(var(--ink-dark) / 0.45);
}

.auth-card .form {
  margin-top: 0.4rem;
}

.card-desc {
  color: var(--muted-text);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.floating-card {
  position: relative;
  border-radius: 18px;
  padding: 1.75rem;
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.9));
  border: 1px solid hsl(var(--border) / 0.8);
  box-shadow: 0 18px 40px hsl(var(--ink-dark) / 0.55);
  overflow: hidden;
  opacity: 1;
  transform: translateY(var(--reveal-offset, 0px));
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.floating-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, hsl(var(--gold-glow) / 0.22), transparent 70%);
  pointer-events: none;
}

.js-animate .floating-card {
  opacity: 0;
  --reveal-offset: 16px;
}

.js-animate .floating-card.is-visible {
  opacity: 1;
  --reveal-offset: 0px;
}

.floating-card:hover {
  transform: translateY(calc(var(--reveal-offset, 0px) - 4px));
  border-color: hsl(var(--gold-glow) / 0.55);
  box-shadow: 0 26px 60px hsl(var(--ink-dark) / 0.6);
}

.js-animate .card,
.js-animate .panel,
.js-animate .hero-panel,
.js-animate .resource-card,
.js-animate .gear-card,
.js-animate .inner-card,
.js-animate .mystic-wheel,
.js-animate .mystic-slot,
.js-animate .rotation-card,
.js-animate .admin-card,
.js-animate .legal-card,
.js-animate .floating-card {
  opacity: 0;
  --reveal-offset: 14px;
}

.js-animate .card.is-visible,
.js-animate .panel.is-visible,
.js-animate .hero-panel.is-visible,
.js-animate .resource-card.is-visible,
.js-animate .gear-card.is-visible,
.js-animate .inner-card.is-visible,
.js-animate .mystic-wheel.is-visible,
.js-animate .mystic-slot.is-visible,
.js-animate .rotation-card.is-visible,
.js-animate .admin-card.is-visible,
.js-animate .legal-card.is-visible,
.js-animate .floating-card.is-visible {
  opacity: 1;
  --reveal-offset: 0px;
}

.builds-page .floating-card {
  height: 100%;
}

.builds-intro .eyebrow {
  margin-bottom: 0.35rem;
}

.builds-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.builds-stat {
  background: hsl(var(--muted) / 0.5);
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.65);
  padding: 0.7rem 0.85rem;
  display: grid;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--muted-foreground) / 0.8);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.builds-card-header h3 {
  margin-bottom: 0.3rem;
}

.builds-card-header p {
  margin: 0;
}

.builds-form {
  margin-top: 1rem;
}

.floating-field {
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.6rem;
}

.floating-field.toggle-field {
  height: 100%;
}

.builds-form .form-label {
  margin: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-text);
}

.builds-input {
  background: hsl(var(--muted) / 0.6);
  border: 1px solid hsl(var(--border) / 0.7);
  color: var(--text);
}

.builds-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.8);
}

.builds-form .form-control:focus {
  background: hsl(var(--muted) / 0.7);
  color: var(--text);
  border-color: hsl(var(--gold-glow) / 0.7);
  box-shadow: 0 0 0 0.2rem hsl(var(--gold-glow) / 0.15);
}

.builds-form .toggle-row {
  width: 100%;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.builds-form .toggle {
  width: 100%;
}

.builds-form .toggle-track {
  width: 100%;
  min-width: 160px;
}

.builds-list {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.2rem;
}

.builds-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.builds-list-head p {
  margin: 0;
}

.build-card .card-body {
  display: grid;
  gap: 0.75rem;
}

.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.build-badge {
  border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.7);
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: hsl(var(--muted) / 0.6);
  color: var(--text);
}

.build-date {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.builds-empty {
  text-align: center;
}

.builds-empty h3 {
  margin-bottom: 0.35rem;
}

.admin-card {
  gap: 1.25rem;
}

.admin-page .admin-card + .admin-card {
  margin-top: 1.25rem;
}

.admin-table {
  display: grid;
  gap: 0.6rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(200px, 1.5fr) minmax(110px, 0.6fr) minmax(90px, 0.5fr) minmax(200px, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  font-size: 0.9rem;
  color: var(--text);
}

.admin-table.has-counts .admin-row {
  grid-template-columns:
    minmax(140px, 0.9fr)
    minmax(200px, 1.5fr)
    minmax(110px, 0.6fr)
    minmax(90px, 0.5fr)
    minmax(110px, 0.5fr)
    minmax(90px, 0.5fr)
    minmax(200px, 0.9fr);
}

.admin-builds-table .admin-row {
  grid-template-columns: minmax(200px, 1.6fr) minmax(140px, 0.9fr) minmax(110px, 0.6fr) minmax(110px, 0.6fr) minmax(200px, 0.9fr);
}

.admin-row-head {
  background: transparent;
  border: 0;
  padding: 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--muted-text);
}

.admin-cell {
  word-break: break-word;
  color: hsl(var(--foreground) / 0.95);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-action-form {
  margin: 0;
}

.admin-owner {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--muted-text);
}

.admin-count {
  font-size: 0.75rem;
  color: var(--muted-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
}

.admin-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--gold-glow) / 0.9);
}

.admin-status-blocked {
  color: hsl(0 70% 70%);
}

.admin-status-blocked::before {
  background: hsl(0 70% 60%);
}

.admin-status-active {
  color: hsl(90 45% 70%);
}

.admin-status-active::before {
  background: hsl(90 50% 60%);
}

.feedback-list {
  display: grid;
  gap: 0.9rem;
}

.feedback-entry {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.6);
  display: grid;
  gap: 0.5rem;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-text);
  align-items: center;
}

.feedback-user {
  color: var(--text);
  font-weight: 600;
}

.feedback-date {
  margin-left: auto;
}

.feedback-delete {
  justify-self: flex-end;
}

.feedback-subject {
  font-size: 0.95rem;
  color: var(--text);
}

.feedback-message {
  color: var(--muted-text);
  white-space: pre-wrap;
}

.admin-empty {
  padding: 0.5rem 0.25rem;
}

.legal-card {
  gap: 1.1rem;
}

.legal-date {
  color: var(--text);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.legal-content h3 {
  margin-top: 1.25rem;
}

.legal-content h4 {
  margin-top: 1rem;
  font-size: 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.build-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.6rem;
}

.build-actions > * {
  width: 100%;
  min-width: 0;
}

.build-actions form {
  display: flex;
}

.build-actions form .btn {
  flex: 1;
}

.build-actions .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
}

.panel {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.92));
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid hsl(var(--border) / 0.8);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.editor-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.form {
  display: grid;
  gap: 1.2rem;
}


.form input,
.form textarea,
.inline-form input,
.inline-form textarea,
.inline-form select,
.filter-form input,
.filter-form select,
.filter-search input,
.filter-search select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--muted) / 0.5);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.inline-form input:focus,
.inline-form textarea:focus,
.inline-form select:focus,
.filter-form input:focus,
.filter-form select:focus,
.filter-search input:focus,
.filter-search select:focus {
  border-color: hsl(var(--gold-glow) / 0.6);
  box-shadow: 0 0 0 0.2rem hsl(var(--gold-glow) / 0.18);
  outline: none;
}

.filter-search select {
  width: 180px;
  min-width: 160px;
  height: 36px;
  line-height: 1.2;
  padding: 0.4rem 0.85rem;
}

.form textarea {
  resize: none;
}

select {
  color-scheme: dark;
}

select option {
  background: hsl(var(--card));
  color: var(--text);
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.settings-password {
  padding-top: 1.2rem;
}

.form-meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.form-meta a {
  color: var(--gold);
}

.form-meta a:hover {
  color: var(--text);
}

.inline-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-form input,
.filter-form select {
  min-width: 160px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-text);
}

.btn {
  border: 1px solid hsl(var(--border) / 0.9);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 0 0 1px hsl(var(--ink-dark) / 0.4),
    inset 0 1px 0 hsl(0 0% 100% / 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, hsl(var(--gold-glow) / 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-primary {
  background:
    linear-gradient(180deg, hsl(var(--gold-glow) / 0.35), transparent 55%),
    hsl(var(--primary));
  color: hsl(45 25% 12%);
  box-shadow: none;
  border-color: hsl(var(--primary) / 0.8);
}

.btn-primary:hover {
  background:
    linear-gradient(180deg, hsl(var(--gold-glow) / 0.45), transparent 55%),
    hsl(var(--gold-glow));
  border-color: hsl(var(--gold-glow) / 0.9);
  box-shadow: 0 10px 24px hsl(var(--gold-glow) / 0.25);
}

.btn-ghost {
  background:
    linear-gradient(180deg, hsl(0 0% 100% / 0.04), transparent 60%),
    transparent;
  border: 1px solid hsl(var(--border) / 0.9);
  color: var(--muted-text);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  color: var(--text);
  background: hsl(var(--secondary) / 0.6);
  border-color: hsl(var(--primary) / 0.5);
}

.detail-actions #like-button[data-liked="true"] {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.9);
  color: hsl(45 25% 12%);
  box-shadow: none;
}

.detail-actions #like-button[data-liked="true"]::before {
  opacity: 0;
}

.detail-actions #like-button[data-liked="true"]:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--gold-glow) / 0.85);
}

.btn-danger {
  background:
    linear-gradient(180deg, hsl(0 80% 75% / 0.08), transparent 55%),
    hsl(0 60% 35% / 0.25);
  border: 1px solid hsl(0 60% 45% / 0.8);
  color: hsl(0 80% 85%);
  box-shadow: 0 6px 18px hsl(0 70% 30% / 0.25);
}

.btn-danger:hover {
  background: hsl(0 60% 35% / 0.35);
  border-color: hsl(0 65% 55% / 0.9);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px hsl(var(--primary) / 0.2),
    inset 0 1px 0 hsl(0 0% 100% / 0.08);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.95rem;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border) / 0.9);
  color: var(--muted-text);
  text-transform: none;
  line-height: 1;
  margin-top: -6px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px hsl(var(--ink-dark) / 0.35);
}

.notification-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--border) / 0.9);
  color: var(--muted-text);
  text-transform: none;
  line-height: 1;
  margin-top: -6px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px hsl(var(--ink-dark) / 0.35);
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px hsl(var(--ink-dark) / 0.75);
}

.profile-icon {
  opacity: 0.8;
}

.profile-caret {
  opacity: 0.6;
  margin-left: 0.1rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  border: 1px solid hsl(var(--gold-glow) / 0.6);
  background: hsl(var(--gold-glow) / 0.12);
}

.admin-badge.inline {
  padding: 0.1rem 0.4rem;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
}

.profile-toggle:hover {
  color: var(--text);
  background: hsl(var(--muted) / 0.9);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 8px 20px hsl(var(--ink-dark) / 0.45);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary) / 0.5);
  outline-offset: 2px;
}

.alert {
  background: hsl(0 70% 35% / 0.2);
  border: 1px solid hsl(0 70% 45% / 0.7);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: hsl(0 80% 90%);
  margin-bottom: 1rem;
}

.notice {
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary) / 0.5);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text);
  margin-bottom: 1rem;
}

.empty {
  color: var(--muted-text);
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.detail-view .container > * + * {
  margin-top: 1.5rem;
}

.detail-view .detail-header {
  margin-bottom: 0;
}

.detail-view .section {
  padding: 0;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.gear-set-summary {
  margin: 1.25rem 0;
}

.gear-set-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gear-set-tags {
  display: grid;
  gap: 0.5rem;
}

.gear-set-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.8);
  color: var(--text);
  font-size: 0.85rem;
}

.gear-set-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--muted) / 0.6);
}

.stat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(var(--muted) / 0.45);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border) / 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-list li:hover {
  border-color: hsl(var(--gold-glow) / 0.5);
  transform: translateY(-1px);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gear-card,
.inner-card {
  background: hsl(var(--muted) / 0.45);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid hsl(var(--border) / 0.65);
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.gear-card:hover,
.inner-card:hover,
.mystic-wheel:hover {
  border-color: hsl(var(--gold-glow) / 0.5);
  transform: translateY(calc(var(--reveal-offset, 0px) - 2px));
}

.gear-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--muted-text);
}

.inner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mystic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mystic-wheel {
  background: hsl(var(--muted) / 0.45);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.65);
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.mystic-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  grid-auto-rows: minmax(56px, auto);
}

.mystic-slot {
  display: grid;
  grid-template-columns: 32px 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: hsl(var(--muted) / 0.5);
  min-height: 56px;
  border: 1px solid hsl(var(--border) / 0.55);
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.4s ease;
}

.mystic-slot:hover {
  border-color: hsl(var(--gold-glow) / 0.5);
  transform: translateY(calc(var(--reveal-offset, 0px) - 2px));
}

.mystic-slot .tag {
  width: 28px;
  justify-content: center;
  display: inline-flex;
}

.mystic-slot .skill-icon.small {
  justify-self: center;
}

.mystic-name {
  display: block;
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tag {
  background: hsl(var(--primary) / 0.18);
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.18);
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.badge-muted {
  background: hsl(210 25% 35% / 0.2);
  color: hsl(210 35% 80%);
}

.badge-legendary {
  background: linear-gradient(135deg, hsl(45 80% 55% / 0.25), hsl(42 90% 60% / 0.4));
  color: hsl(45 90% 75%);
  border: 1px solid hsl(45 70% 55% / 0.9);
}

.badge-epic {
  background: linear-gradient(135deg, hsl(270 55% 55% / 0.25), hsl(280 65% 60% / 0.35));
  color: hsl(280 70% 80%);
  border: 1px solid hsl(275 60% 55% / 0.9);
}

.badge-outline {
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.9);
  color: var(--gold);
}

.skill-header {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: hsl(var(--muted) / 0.6);
  border: 1px solid hsl(var(--border) / 0.8);
}

.skill-icon.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.skill-icon.inner-way {
  width: 220px;
  height: 220px;
  border-radius: 22px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: hsl(var(--muted) / 0.45);
}
.skill-icon.large {
  width: 72px;
  height: 72px;
  margin-bottom: 0.75rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-text);
}

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.toggle input {
  display: none;
}

.toggle-track {
  position: relative;
  width: 160px;
  height: 36px;
  border-radius: 999px;
  background: hsl(var(--muted) / 0.6);
  border: 1px solid hsl(var(--border) / 0.8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.toggle-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-text);
  z-index: 1;
  height: 100%;
  pointer-events: none;
  width: 100%;
  text-align: center;
  line-height: 1;
}

.toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(50% - 1px);
  height: calc(100% - 2px);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(100%);
}

.toggle input:checked + .toggle-track .toggle-text.private {
  color: hsl(45 25% 12%);
  font-weight: 600;
}

.toggle input:not(:checked) + .toggle-track .toggle-text.public {
  color: hsl(45 25% 12%);
  font-weight: 600;
}

.status {
  margin-top: 1rem;
  color: var(--muted-text);
}

#comments {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-thread {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.comment {
  background: hsl(var(--muted) / 0.45);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.comment.is-reply {
  background: hsl(var(--muted) / 0.35);
}

.comment-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-text);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.comment-info {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
}

.comment-info .admin-badge {
  transform: translateY(-1px);
}

.comment-actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-body {
  margin: 0;
  color: var(--text);
}

.comment-context {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.comment-reply-form {
  margin-left: 1.5rem;
}

.comment-reply-form.is-hidden {
  display: none;
}

.comment-reply-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.comment-replies {
  display: grid;
  gap: 0.75rem;
  margin-left: 1.4rem;
  padding-left: 1.6rem;
  position: relative;
  --reply-elbow: 1.25rem;
  --reply-line-start: 1.25rem;
  --reply-line-end: 1.25rem;
  --reply-trunk-left: 0.4rem;
}

.comment-replies::before {
  content: "";
  position: absolute;
  left: var(--reply-trunk-left);
  top: var(--reply-line-start);
  height: calc(var(--reply-line-end) - var(--reply-line-start));
  width: 2px;
  background: hsl(var(--border) / 0.6);
  border-radius: 999px;
}

.comment-replies .comment-thread::after {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: var(--reply-elbow);
  width: 0.95rem;
  height: 2px;
  background: hsl(var(--border) / 0.6);
  border-radius: 999px;
}

.comment-load-more {
  margin-bottom: 1rem;
}

.comment-thread.has-replies::before {
  content: "";
  position: absolute;
  left: var(--reply-connector-left);
  top: var(--reply-connector-top);
  height: var(--reply-connector-height);
  width: 2px;
  background: hsl(var(--border) / 0.6);
  border-radius: 999px;
}

.comment-deleted {
  opacity: 0.7;
}

.btn-small {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
}

.site-footer {
  padding: 2.2rem 0 2.6rem;
  color: var(--muted-text);
  background: linear-gradient(180deg, hsl(var(--ink-dark) / 0.85), hsl(var(--background)));
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.footer-banner {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 0.6rem 0;
  transform: translateY(-0.4rem);
}

.footer-banner-row {
  display: flex;
  align-items: center;
  gap: 0;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.95);
  text-shadow: 0 0 14px hsl(var(--gold-glow) / 0.35);
  --diamond-gap: 0.6rem;
}

.footer-banner-title {
  font-family: 'Cinzel', serif;
  margin: 0 var(--diamond-gap);
  font-weight: 700;
  transform: translateX(0.1rem);
}

.footer-banner-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsl(var(--gold-glow) / 0.85));
}

.footer-banner-line:last-of-type {
  background: linear-gradient(90deg, hsl(var(--gold-glow) / 0.85), transparent);
}

.footer-banner-diamond {
  width: 12px;
  height: 12px;
  border: 1px solid hsl(var(--gold-glow));
  transform: rotate(45deg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: start;
  transform: translateY(-0.5rem);
}

.footer-brand {
  display: grid;
  gap: 0.6rem;
}

.footer-brand-title {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold-bright);
}

.footer-brand-tagline {
  margin: 0;
  color: var(--muted-text);
  max-width: 34ch;
}

.footer-brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.75);
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.footer-links {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

.footer-contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--muted-text);
  margin-bottom: 0.35rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  text-decoration: none;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid hsl(326 60% 58% / 0.7);
  color: hsl(325 68% 80%);
  background:
    linear-gradient(180deg, hsl(325 65% 35% / 0.2), transparent 65%),
    hsl(var(--secondary) / 0.55);
  font-weight: 600;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 16px hsl(326 75% 55% / 0.18);
  appearance: none;
}

.nav-support {
  height: 34px;
  padding: 0 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.header-support {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.footer-support:hover {
  border-color: hsl(326 70% 70%);
  color: hsl(325 80% 90%);
  background:
    linear-gradient(180deg, hsl(326 70% 45% / 0.3), transparent 65%),
    hsl(var(--secondary) / 0.7);
  text-decoration: none;
}

.footer-link:hover:not(.footer-support) {
  text-decoration: underline;
}

.footer-meta {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.85);
}

.footer-meta-dot {
  opacity: 0.5;
}

.feedback-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 18px 40px hsl(var(--ink-dark) / 0.6);
}

.feedback-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1080;
  overflow-y: auto;
}

.feedback-modal.show {
  display: block;
}

.feedback-modal .modal-dialog {
  max-width: 560px;
}

.feedback-modal .modal-content {
  background: linear-gradient(180deg, hsl(var(--card) / 0.98), hsl(var(--secondary) / 0.92));
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: 18px;
  color: var(--text);
  box-shadow: 0 26px 70px hsl(var(--ink-dark) / 0.65);
}

.feedback-modal .modal-header {
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  gap: 1rem;
}

.feedback-modal .modal-header .muted {
  margin: 0.25rem 0 0;
}

.feedback-modal .modal-title {
  font-family: 'Cinzel', serif;
  margin: 0;
}

.feedback-modal .modal-body {
  display: grid;
  gap: 1rem;
}

.feedback-modal .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.feedback-modal .btn-close:hover {
  opacity: 1;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.feedback-status {
  margin-bottom: 0.5rem;
}

.feedback-modal .form textarea {
  min-height: 140px;
}

.modal-backdrop.show {
  opacity: 0.65;
}

.support-modal .modal-dialog {
  max-width: 420px;
}

.support-modal .modal-content {
  border-radius: 20px;
  border: 1px solid hsl(var(--border) / 0.6);
  background: linear-gradient(180deg, hsl(var(--card) / 0.96), hsl(var(--secondary) / 0.94));
  box-shadow: var(--shadow);
}

.support-modal .modal-header {
  position: relative;
  justify-content: center;
  border-bottom: none;
  padding: 2.2rem 2rem 0.5rem;
}

.support-modal .btn-close {
  position: absolute;
  right: 1.35rem;
  top: 1.35rem;
  filter: invert(1);
  opacity: 0.65;
}

.support-modal .btn-close:hover {
  opacity: 0.95;
}

.support-modal-heart {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, hsl(327 65% 60% / 0.6), hsl(326 50% 22%));
  border: 1px solid hsl(326 55% 45% / 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px hsl(326 60% 35% / 0.35);
}

.support-modal-heart .icon {
  width: 28px;
  height: 28px;
  stroke: hsl(325 70% 88%);
  fill: none;
}

.support-modal .modal-body {
  padding: 0 2rem 2rem;
  text-align: center;
}

.support-modal-title {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-modal-copy {
  margin: 0 0 1.5rem;
  color: hsl(var(--muted-foreground) / 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--secondary) / 0.65);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.support-option:hover {
  border-color: hsl(var(--gold-glow) / 0.5);
  box-shadow: 0 0 20px hsl(var(--gold-glow) / 0.15);
  transform: translateY(-1px);
}

.support-option-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(42 30% 12%);
  border: 1px solid hsl(var(--gold-glow) / 0.35);
}

.support-option-icon .icon {
  width: 20px;
  height: 20px;
  stroke: hsl(var(--gold-glow));
  fill: none;
}

.support-option-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.support-option-title {
  font-weight: 600;
  font-size: 1rem;
}

.support-option-subtitle {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground) / 0.8);
}

.support-option-price {
  font-weight: 700;
  color: hsl(var(--gold-glow));
  font-size: 1rem;
}

.support-modal-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground) / 0.7);
}

@media (max-width: 720px) {
  .filter-search {
    flex-wrap: wrap;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row-head {
    display: none;
  }

  .feedback-meta {
    letter-spacing: 0.12em;
  }

  .feedback-date {
    margin-left: 0;
  }

  .footer-banner-row {
    letter-spacing: 0.26em;
    font-size: 0.68rem;
    --diamond-gap: 0.45rem;
  }


  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-fab {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .feedback-fab-text {
    display: none;
  }
}

.gear-editor-slot {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--muted) / 0.45);
}

.gear-editor-slot h4 {
  margin-bottom: 0.75rem;
}

.gear-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 56px 92px;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gear-meta-row label:only-child {
  grid-column: 1 / 3;
}

.gear-enhanced-row {
  margin-top: 0.5rem;
}

.gear-meta-row label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.gear-meta-row select,
.gear-meta-row input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--muted) / 0.5);
  color: var(--text);
  height: 38px;
  font-size: 0.95rem;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gear-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 56px 92px;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
  width: 100%;
}

.gear-row select,
.gear-row input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--muted) / 0.5);
  color: var(--text);
  height: 38px;
  font-size: 0.95rem;
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gear-row .pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.18);
  color: var(--gold);
  font-size: 0.75rem;
  text-align: center;
  width: 56px;
  justify-content: center;
  display: inline-flex;
}

.gear-set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gear-set-block {
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.gear-set-block h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.gear-set-list {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.gear-set-slot {
  display: grid;
  gap: 0.4rem;
}

.gear-set-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.gear-set-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.gear-set-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--muted) / 0.6);
}

.gear-set-slot select {
  width: 100%;
}

@media (max-width: 720px) {
  .gear-set-grid {
    grid-template-columns: 1fr;
  }
}

.inner-slot {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.7);
}

.inner-slot select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border) / 0.8);
  background-color: hsl(var(--muted) / 0.5);
  color: var(--text);
  height: 38px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inner-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.inner-levels {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.level-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border) / 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.level-dot.active {
  background: var(--gold);
  color: hsl(45 25% 12%);
}

.mystic-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mystic-editor-wheel {
  padding: 1rem;
  border-radius: 12px;
  background: hsl(var(--muted) / 0.45);
  border: 1px solid hsl(var(--border) / 0.7);
}

.mystic-editor-slot {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.mystic-editor-slot input {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--muted) / 0.5);
  color: var(--text);
}

.mystic-editor-slot select,
.mystic-select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid hsl(var(--border) / 0.8);
  background-color: hsl(var(--muted) / 0.5);
  color: var(--text);
  height: 38px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-search .mystic-select {
  width: 160px;
  min-width: 140px;
  flex: 0 0 auto;
}

.rotation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.rotation-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rotation-card {
  min-width: 160px;
  max-width: 210px;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--muted) / 0.45);
  display: grid;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.rotation-card.is-draggable {
  cursor: grab;
}

.rotation-card.is-draggable:active {
  cursor: grabbing;
}

.rotation-card.is-dragging {
  opacity: 0.7;
  border-style: dashed;
  transform: translateY(calc(var(--reveal-offset, 0px) - 2px)) scale(1.02);
  box-shadow: var(--shadow);
}

.rotation-step.is-drop-target .rotation-card {
  border-color: hsl(var(--gold-glow) / 0.7);
}

.rotation-card:hover {
  border-color: hsl(var(--gold-glow) / 0.5);
  transform: translateY(calc(var(--reveal-offset, 0px) - 2px));
}

.rotation-card.is-empty {
  color: var(--muted-text);
}

.rotation-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--muted) / 0.6);
  object-fit: cover;
  margin: 0 auto;
}

.rotation-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.rotation-select {
  text-align: left;
}

.rotation-arrow {
  color: var(--muted-text);
  font-size: 1.2rem;
}

.rotation-controls {
  margin-top: 0.75rem;
}

.rotation-hint {
  margin-top: 0.5rem;
}

.rotation-remove {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.rotation-notes {
  margin-top: 1rem;
}

.error-banner {
  background: hsl(0 70% 35% / 0.2);
  border: 1px solid hsl(0 70% 45% / 0.6);
  color: hsl(0 80% 90%);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.resource-card {
  background: hsl(var(--muted) / 0.45);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid hsl(var(--border) / 0.7);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px hsl(var(--ink-dark) / 0.35);
  transform: translateY(var(--reveal-offset, 0px));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
}

.stat-group {
  margin-bottom: 1.2rem;
}

.schema-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold);
}

.code-block {
  background: hsl(var(--muted) / 0.55);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--border) / 0.8);
  color: var(--muted-text);
  white-space: pre-wrap;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.link-list a {
  color: var(--gold-bright);
}

@media (max-width: 720px) {
  .gear-row {
    grid-template-columns: 1fr;
  }
  .gear-meta-row {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .build-actions {
    grid-template-columns: 1fr;
  }
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .auth-card {
    padding: 1.6rem;
  }
}
