:root {
  --bg-1: #1a1430;
  --bg-2: #302055;
  --bg-3: #6f3b83;
  --text: #fff4d6;
  --muted: #d7c5dd;
  --panel: rgba(28, 20, 48, 0.78);
  --panel-strong: rgba(44, 28, 70, 0.92);
  --gold: #ffd86b;
  --orange: #ff9f4d;
  --pink: #ff6b9b;
  --blue: #72d7ff;
  --green: #88e08f;
  --border: #f2d98b;
  --shadow: #130d26;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 216, 107, .20), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(114, 215, 255, .16), transparent 24rem),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 48%, #21172e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { image-rendering: pixelated; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pixel-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.sky, .sky * { position: fixed; pointer-events: none; z-index: 0; }
.cloud {
    width: 150px;
    height: 60px;
    opacity: .28;
  background: center / 100% 100% no-repeat url('../img/cloud.png');
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.08));
  animation: drift 32s linear infinite;
}
.cloud-a { top: 18%; left: -180px; }
.cloud-b { top: 38%; left: -240px; animation-duration: 45s; animation-delay: -10s; transform: scale(.75); }
.cloud-c { top: 8%; left: -220px; animation-duration: 55s; animation-delay: -22s; transform: scale(.55); }
.star {
  width: 12px; height: 12px;
  opacity: .82;
  background: center / contain no-repeat url('../img/star.png');
  filter: drop-shadow(0 0 10px rgba(255,216,107,.45));
  image-rendering: pixelated;
  animation: twinkle 1.8s ease-in-out infinite;
}
.s1 { top: 18%; left: 68%; }
.s2 { top: 62%; left: 8%; animation-delay: .6s; }
.s3 { top: 30%; left: 88%; animation-delay: 1.1s; }
.s4 { top: 12%; left: 38%; animation-delay: .3s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(24, 16, 42, .76);
  border-bottom: 4px solid rgba(255, 216, 107, .35);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: clamp(120px, 16vw, 152px); height: auto; display: block; animation: logoPulse 2.4s ease-in-out infinite; }
.nav-links { display: flex; gap: clamp(.5rem, 2vw, 1.5rem); color: var(--muted); font-weight: 700; }
.nav-links a { padding: .5rem .7rem; border-radius: 999px; transition: .2s ease; }
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,.08); transform: translateY(-2px); }

.section-shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; position: relative; z-index: 1; }
.hero { min-height: 78vh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; padding: 84px 0 40px; }
.eyebrow { margin: 0 0 .7rem; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-weight: 900; font-size: .78rem; }
h1, h2, h3 { margin: 0; line-height: .98; text-shadow: 0 4px 0 var(--shadow); }
h1 { font-size: clamp(3.1rem, 9vw, 7.8rem); max-width: 8ch; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h3 { font-size: 1.5rem; }
.hero-text, .section-heading p, .info-panel p, .feature-card p { color: var(--muted); line-height: 1.65; font-size: 1.05rem; }
.hero-text { max-width: 620px; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }
.btn {
  --btn-bg: linear-gradient(180deg, #6f4c9a, #3b285f);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 1.1rem;
  background: var(--btn-bg);
  border: 3px solid var(--border);
  box-shadow: 0 6px 0 #151029, 0 0 0 4px rgba(0,0,0,.15), inset 0 2px 0 rgba(255,255,255,.25);
  border-radius: 6px;
  color: #fff8de;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .15s ease-in-out, filter .2s ease-in-out, box-shadow .2s ease-in-out;
}
.btn:hover { transform: translateY(-5px) scale(1.03); filter: brightness(1.18); box-shadow: 0 11px 0 #151029, 0 0 28px rgba(255,216,107,.36), inset 0 2px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #151029; }
.btn-primary { --btn-bg: linear-gradient(180deg, #ffcf5b, #e45e4a); color: #32152d; animation: ctaGlow 1.6s ease-in-out infinite alternate; }
.btn-info { --btn-bg: linear-gradient(180deg, #4fc2ff, #3367c7); }

.server-stats { display: flex; flex-wrap: wrap; gap: .7rem; }
.server-stats span { padding: .7rem .9rem; background: rgba(0,0,0,.24); border: 2px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--muted); }
.server-stats strong { color: var(--gold); margin-right: .25rem; }

.hero-stage { min-height: 520px; position: relative; display: grid; place-items: center; }
.magic-ring {
  width: min(440px, 78vw); aspect-ratio: 1;
  border: 7px dashed rgba(255,216,107,.62);
  border-radius: 50%;
  box-shadow: inset 0 0 45px rgba(114,215,255,.16), 0 0 70px rgba(255,107,155,.20);
  animation: spin 18s linear infinite;
}
.magic-ring::before, .magic-ring::after {
  content: ''; position: absolute; inset: 15%; border: 4px dotted rgba(114,215,255,.44); border-radius: 50%; animation: spin 10s linear infinite reverse;
}
.hero-character { position: absolute; width: min(330px, 58vw); filter: drop-shadow(0 22px 0 rgba(0,0,0,.24)); }
.pet-bob { position: absolute; width: 128px; right: 9%; bottom: 12%; animation: hop 1.4s ease-in-out infinite; filter: drop-shadow(0 14px 0 rgba(0,0,0,.2)); }
.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url('../img/star.png');
  filter: drop-shadow(0 0 16px rgba(255,216,107,.68));
  image-rendering: pixelated;
  animation: sparkle 1.1s ease-in-out infinite;
}
.spark-a { left: 14%; top: 30%; }
.spark-b { right: 18%; top: 18%; animation-delay: .35s; filter: drop-shadow(0 0 16px rgba(114,215,255,.52)); }
.spark-c { right: 27%; bottom: 25%; animation-delay: .7s; filter: drop-shadow(0 0 16px rgba(255,107,155,.48)); }

.ticker { position: relative; z-index: 2; overflow: hidden; border-block: 4px solid rgba(255,216,107,.35); background: rgba(19,13,38,.6); }
.ticker-track { display: flex; gap: 3rem; width: max-content; padding: .85rem 0; animation: marquee 24s linear infinite; color: var(--gold); font-weight: 900; white-space: nowrap; }

.features { padding: 86px 0; }
.database-entry {
  padding: 0 0 86px;
}

.database-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.2rem, 3.2vw, 1.8rem);
  background: var(--panel-strong);
  border: 4px solid rgba(255, 216, 107, .30);
  border-radius: 12px;
  box-shadow: 0 16px 0 rgba(0, 0, 0, .28), 0 0 48px rgba(114, 215, 255, .08);
}

.database-entry-copy {
  display: grid;
  gap: .7rem;
}

.database-entry-copy h2,
.database-entry-copy p {
  margin: 0;
}

.database-entry-copy p:last-child,
.database-entry-note {
  color: var(--muted);
  line-height: 1.65;
}

.database-entry-actions {
  display: grid;
  gap: .8rem;
  justify-items: start;
}

.database-open-button {
  min-width: min(260px, 100%);
}

.database-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity .28s ease;
}

.database-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.database-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top, rgba(114, 215, 255, .14), transparent 24rem),
    rgba(9, 6, 16, .78);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.database-overlay__dialog {
  position: relative;
  width: min(1240px, 100%);
  margin-block: auto;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  background: rgba(20, 14, 35, .98);
  border: 4px solid rgba(242, 217, 139, .42);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(255, 255, 255, .05);
  transform: translateY(28px) scale(.94);
  opacity: 0;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.database-overlay.is-open .database-overlay__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.database-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.database-overlay__copy {
  display: grid;
  gap: .45rem;
}

.database-overlay__copy h2,
.database-overlay__copy p {
  margin: 0;
}

.database-overlay__copy p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.database-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: 0 .95rem;
  border: 3px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf5b, #e45e4a);
  box-shadow: inset 0 -5px 0 #151029, 0 0 18px rgba(255, 159, 77, .22);
  color: #32152d;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .15s ease-in-out, filter .22s ease-in-out, box-shadow .22s ease-in-out;
}

.database-overlay__close:hover,
.database-overlay__close:focus-visible {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: inset 0 -5px 0 #151029, 0 0 26px rgba(255, 216, 107, .34);
  outline: none;
}

body.database-overlay-open {
  overflow: hidden;
}

.database-shell {
  padding: clamp(1.2rem, 3.4vw, 1.7rem);
  background: var(--panel-strong);
  border: 4px solid rgba(255, 216, 107, .38);
  border-radius: 12px;
  box-shadow: 0 16px 0 rgba(0, 0, 0, .28), 0 0 60px rgba(114, 215, 255, .08);
}

.database-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
}

.database-summary-card {
  padding: .95rem 1rem;
  background: rgba(255, 255, 255, .06);
  border: 3px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
}

.database-summary-label {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.database-summary-card strong {
  display: block;
  margin-top: .35rem;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
}

.database-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
}

.database-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.database-tab {
  min-height: 46px;
  padding: 0 1rem;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.database-tab:hover,
.database-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 107, .5);
  color: var(--text);
  outline: none;
}

.database-tab.is-active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 216, 107, .26), rgba(255, 107, 155, .16));
  color: var(--text);
}

.database-search {
  flex: 1 1 280px;
}

.database-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(11, 7, 21, .56);
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
}

.database-search input::placeholder {
  color: rgba(215, 197, 221, .72);
}

.database-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(114, 215, 255, .16), inset 0 0 0 2px rgba(255, 255, 255, .04);
}

.database-note,
.database-status {
  margin: .85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.database-note {
  font-size: .95rem;
}

.database-status {
  min-height: 1.5rem;
  color: var(--blue);
  font-weight: 700;
}

.database-status.is-error {
  color: #ffb1b1;
}

.database-grid {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: 1rem;
  margin-top: 1rem;
}

.database-results,
.database-detail {
  background: rgba(15, 10, 27, .66);
  border: 3px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .03);
}

.database-results {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: 760px;
}

.database-results-header {
  display: grid;
  gap: .25rem;
  padding: 1rem 1rem .85rem;
  border-bottom: 2px solid rgba(255, 255, 255, .06);
}

.database-results-header strong {
  color: var(--gold);
  font-size: 1rem;
}

.database-results-header span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.database-results-list {
  flex: 1 1 auto;
  display: grid;
  gap: .55rem;
  padding: .7rem;
  overflow-y: auto;
}

.database-result {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  width: 100%;
  padding: .78rem .82rem;
  border: 2px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.database-result:hover,
.database-result:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(114, 215, 255, .52);
  background: rgba(255, 255, 255, .06);
  outline: none;
}

.database-result.is-active {
  border-color: var(--gold);
  background: rgba(255, 216, 107, .12);
}

.database-result--compact {
  gap: .55rem;
  padding: .58rem .68rem;
}

.database-result--compact .database-result-body {
  gap: .18rem;
}

.database-result--compact .database-result-title {
  font-size: .94rem;
  line-height: 1.2;
}

.database-result--compact .database-result-meta,
.database-result--compact .database-result-note {
  font-size: .8rem;
  line-height: 1.3;
}

.database-result-body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: .28rem;
}

.database-result-media,
.database-detail-figure {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(circle at top, rgba(255, 216, 107, .12), transparent 55%),
    rgba(11, 7, 21, .72);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .03);
}

.database-result-media {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.database-result-media--monster {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
}

.database-result--compact .database-result-media,
.database-result--compact .database-result-media--monster {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.database-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.database-media-fallback {
  display: none;
  padding: .35rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.2;
}

.database-result-media.is-fallback .database-media-fallback,
.database-detail-figure.is-fallback .database-media-fallback {
  display: block;
}

.database-result-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
}

.database-result-meta,
.database-result-note {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.database-detail {
  min-height: 640px;
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

.database-detail-card,
.database-placeholder {
  display: grid;
  gap: 1rem;
}

.database-detail-hero {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.database-detail-figure {
  min-height: 180px;
  padding: .9rem;
  border-radius: 16px;
}

.database-detail-figure--monster {
  min-height: 210px;
}

.database-detail-figure .database-media-image {
  max-width: 100%;
  max-height: 240px;
}

.database-placeholder p,
.database-placeholder h3 {
  margin: 0;
}

.database-placeholder p:last-child,
.database-empty-copy {
  color: var(--muted);
  line-height: 1.65;
}

.database-detail-header {
  display: grid;
  gap: .45rem;
}

.database-detail-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.database-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.database-chip,
.database-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border: 2px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: .88rem;
  font-weight: 700;
}

.database-pill {
  padding: .28rem .55rem;
  color: var(--gold);
}

.database-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: .75rem;
}

.database-stat-card {
  padding: .85rem .9rem;
  border: 2px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.database-stat-card span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.database-stat-card strong {
  display: block;
  margin-top: .35rem;
  color: var(--gold);
  font-size: 1.15rem;
}

.database-section {
  display: grid;
  gap: .8rem;
}

.database-section h4 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

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

.database-list li {
  padding: .72rem .8rem;
  border: 2px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.database-list--compact {
  gap: .45rem;
}

.database-list--compact li {
  padding: .58rem .68rem;
}

.database-list-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  line-height: 1.3;
}

.database-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .8rem;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}

.database-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.database-inline-link:hover,
.database-inline-link:focus-visible {
  color: var(--gold);
  outline: none;
}

.database-job-skill-note {
  color: var(--muted);
  margin: .12rem 0 0;
  font-size: .84rem;
  line-height: 1.45;
}

.database-ro-description {
  padding: 5px 8px;
  border: 1px solid #c5c5c5;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
  color: #202020;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.database-ro-description span {
  font: inherit;
}

.database-table-wrap {
  overflow-x: auto;
}

.database-metrics-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.database-metrics-table th,
.database-metrics-table td {
  padding: .7rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

.database-metrics-table th {
  color: var(--blue);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.database-metrics-table td {
  color: var(--muted);
}

.database-empty,
.database-truncate-note {
  color: var(--muted);
  line-height: 1.6;
}

.database-empty {
  padding: 1rem;
}

.database-truncate-note {
  margin: 0;
  font-size: .92rem;
}

.database-detail-stack {
  display: grid;
  gap: 1rem;
}

.section-heading { max-width: 720px; margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background: var(--panel);
  border: 4px solid rgba(242,217,139,.42);
  box-shadow: 0 12px 0 rgba(0,0,0,.28), inset 0 0 0 3px rgba(255,255,255,.06);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.feature-card::before { content: ''; position: absolute; inset: -80% -20%; background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.16), transparent 55%); transform: translateX(-70%); transition: .55s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 20px 0 rgba(0,0,0,.28), 0 0 38px rgba(255,216,107,.18); }
.feature-card:hover::before { transform: translateX(70%); }
.feature-card:focus-visible {
  outline: none;
  transform: translateY(-10px);
  border-color: var(--blue);
  box-shadow: 0 20px 0 rgba(0,0,0,.28), 0 0 42px rgba(114,215,255,.24);
}
.feature-card img { width: 100%; border: 3px solid rgba(255,255,255,.18); background: #20162f; }
.feature-card h3 { margin-top: 1rem; }

.feature-preview {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity .28s ease;
}
.feature-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}
.feature-preview__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top, rgba(255,216,107,.20), transparent 26rem),
    rgba(12, 8, 20, .78);
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.feature-preview__dialog {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
  gap: clamp(.85rem, 2.4vw, 1.6rem);
  padding: clamp(.9rem, 2.4vw, 1.35rem);
  background: rgba(24, 16, 42, .96);
  border: 4px solid rgba(242,217,139,.48);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.05);
  overflow: hidden;
  margin-block: auto;
  transform: translateY(28px) scale(.92);
  opacity: 0;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, box-shadow .3s ease;
}
.feature-preview__dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(114,215,255,.14), transparent 18rem),
    radial-gradient(circle at bottom left, rgba(255,107,155,.12), transparent 16rem);
  pointer-events: none;
}
.feature-preview.is-open .feature-preview__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.feature-preview__media,
.feature-preview__body {
  position: relative;
  z-index: 1;
}
.feature-preview__media {
  min-height: min(74vh, 680px);
  display: grid;
  place-items: center;
  padding: clamp(.45rem, 1.6vw, .85rem);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 3px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.04);
}
.feature-preview__media img {
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
  border: 4px solid rgba(255,255,255,.14);
  background: #20162f;
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  transform: scale(1.08);
  opacity: 0;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1) .04s, opacity .28s ease .04s;
}
.feature-preview.is-open .feature-preview__media img {
  transform: scale(1);
  opacity: 1;
}
.feature-preview__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.feature-preview__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}
.feature-preview__close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 56px;
  padding: 0 .95rem;
  border: 3px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf5b, #e45e4a);
  box-shadow: inset 0 -6px 0 #151029, 0 0 18px rgba(255,159,77,.22);
  color: #32152d;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .15s ease-in-out, filter .22s ease-in-out, box-shadow .22s ease-in-out;
}
.feature-preview__close:hover,
.feature-preview__close:focus-visible {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: inset 0 -6px 0 #151029, 0 0 26px rgba(255,216,107,.34);
  outline: none;
}
.feature-preview__close:active {
  transform: translateY(1px);
  box-shadow: inset 0 -3px 0 #151029, 0 0 14px rgba(255,216,107,.24);
}

body.feature-preview-open {
  overflow: hidden;
}

.info-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  margin-bottom: 70px; padding: clamp(1.2rem, 4vw, 2.5rem);
  background: var(--panel-strong);
  border: 4px solid rgba(114,215,255,.35);
  box-shadow: 0 14px 0 rgba(0,0,0,.28), 0 0 60px rgba(114,215,255,.12);
  border-radius: 10px;
}
.info-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.info-list li { padding: .9rem 1rem; background: rgba(255,255,255,.07); border-left: 5px solid var(--gold); color: var(--muted); }
.info-list strong { color: var(--gold); }
.site-footer { position: relative; z-index: 1; padding: 28px 16px 48px; text-align: center; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

@keyframes drift { to { transform: translateX(calc(100vw + 320px)); } }
@keyframes twinkle { 50% { opacity: .25; transform: scale(1.8); } }
@keyframes logoPulse { 50% { transform: translateY(-2px) rotate(-4deg); filter: drop-shadow(0 0 12px rgba(255,216,107,.55)); } }
@keyframes ctaGlow { from { box-shadow: 0 6px 0 #151029, 0 0 14px rgba(255,159,77,.25); } to { box-shadow: 0 6px 0 #151029, 0 0 34px rgba(255,216,107,.65); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1,1); } 45% { transform: translateY(-18px) scale(1.03,.97); } 65% { transform: translateY(0) scale(1.08,.9); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes sparkle { 50% { transform: scale(1.8) rotate(45deg); opacity: .45; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.floaty { animation: floaty 3.2s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero, .info-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; text-align: center; }
  h1 { margin-inline: auto; }
  .hero-text { margin-inline: auto; }
  .cta-row, .server-stats { justify-content: center; }
  .hero-stage { min-height: 430px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .database-entry-card { grid-template-columns: 1fr; }
  .database-entry-actions { justify-items: stretch; }
  .database-overlay__header { flex-direction: column; }
  .database-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-toolbar, .database-grid { grid-template-columns: 1fr; }
  .database-toolbar { flex-direction: column; align-items: stretch; }
  .database-grid { display: grid; }
  .database-results, .database-detail { min-height: 0; }
  .database-results { max-height: 420px; }
  .database-detail-hero { grid-template-columns: 1fr; }
  .database-detail-figure {
    min-height: 0;
    max-width: 220px;
    margin-inline: auto;
  }
  .feature-preview { padding: 14px; }
  .feature-preview__dialog { grid-template-columns: 1fr; padding-top: 4.5rem; }
  .feature-preview__media { min-height: min(70vh, 560px); }
  .feature-preview__media img { max-height: min(68vh, 560px); }
  .feature-preview__close { top: 1rem; right: 1rem; }
}
@media (max-width: 580px) {
  .site-header { align-items: stretch; flex-direction: column; gap: .75rem; padding-block: 12px 14px; }
  .brand { justify-content: center; }
  .brand img { width: min(148px, 48vw); }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: .45rem; }
  .nav-links a { flex: 1 1 92px; text-align: center; }
  .btn { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .database-summary { grid-template-columns: 1fr 1fr; }
  .database-tabs { display: grid; grid-template-columns: 1fr; }
  .database-tab { width: 100%; }
  .database-shell { padding: 1rem; }
  .database-detail { padding: 1rem; }
  .database-stat-grid { grid-template-columns: 1fr 1fr; }
  .database-overlay { padding: 10px; }
  .database-overlay__dialog { padding: .9rem; }
  .database-overlay__close { width: 100%; }
  .database-result {
    gap: .65rem;
    padding: .8rem;
  }
  .database-result-media,
  .database-result-media--monster {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
  .hero-stage { min-height: 340px; }
  .pet-bob { width: 96px; }
  .feature-preview { padding: 12px; }
  .feature-preview__dialog { padding-top: 5rem; }
  .feature-preview__media { min-height: min(62vh, 420px); }
  .feature-preview__media img { max-height: min(58vh, 420px); }
  .feature-preview__close { left: 1rem; right: 1rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
}
