:root {
  --bg: #08060d;
  --bg-2: #0e0a18;
  --panel: #120d1f;
  --panel-2: #171126;
  --line: #2a2140;
  --text: #f4f1fa;
  --muted: #9a90b5;
  --purple: #8b3dff;
  --purple-2: #a855f7;
  --violet: #c084fc;
  --glow: rgba(139, 61, 255, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 55% at 50% 50%, rgba(139, 61, 255, .17), transparent 70%),
    radial-gradient(50% 45% at 50% 50%, rgba(88, 28, 135, .15), transparent 70%),
    radial-gradient(42% 40% at 50% 50%, rgba(168, 85, 247, .09), transparent 72%);
  background-size: 170% 170%, 150% 150%, 130% 130%;
  background-position: 80% 0%, 0% 20%, 50% 80%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: bgDrift 32s ease-in-out infinite alternate;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#site-header { flex: 0 0 auto; }
main { flex: 1 0 auto; }
#site-footer { flex: 0 0 auto; margin-top: auto; }

@keyframes bgDrift {
  0%   { background-position: 80% 0%, 0% 20%, 50% 80%; }
  25%  { background-position: 65% 18%, 18% 55%, 42% 35%; }
  50%  { background-position: 42% 50%, 40% 80%, 62% 55%; }
  75%  { background-position: 20% 65%, 65% 35%, 38% 25%; }
  100% { background-position: 8% 30%, 82% 55%, 55% 15%; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.wrap { width: min(1440px, 100% - 48px); margin-inline: auto; }
@media (max-width: 700px) { .wrap { width: calc(100% - 28px); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 6, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-badge {
  width: 48px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  display: grid; place-items: center;
  box-shadow: 0 0 24px var(--glow);
  font-size: 22px;
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand-name em { color: var(--purple-2); font-style: normal; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  transition: .18s;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); background: rgba(139, 61, 255, .1); }
.nav-link.active {
  color: #fff; background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: rgba(168, 85, 247, .5);
  box-shadow: 0 0 22px var(--glow);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); display: grid; place-items: center;
  transition: .18s; font-size: 18px;
}
.icon-btn:hover { color: #fff; background: rgba(139, 61, 255, .14); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 10px; border: 1px solid transparent;
  padding: 11px 20px; font-weight: 700; font-size: 14.5px;
  transition: .18s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #8b3dff, #6d28d9);
  color: #fff; box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(139, 61, 255, .7); }
.btn-ghost { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); background: rgba(139, 61, 255, .12); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

.mobile-toggle { display: none; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-toggle { display: grid; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; gap: 6px;
  }
  .header-actions .btn-login span { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 85% 40%, rgba(168, 85, 247, .22), transparent 65%),
    radial-gradient(500px 300px at 55% 100%, rgba(88, 28, 135, .3), transparent 70%),
    linear-gradient(180deg, #120b22 0%, #0a0712 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 24px; align-items: center; padding: 54px 0 48px;
}
.hero-title { font-size: clamp(38px, 5.2vw, 68px); font-weight: 900; line-height: .98; letter-spacing: -.03em; text-transform: uppercase; }
.hero-title .free { color: var(--purple-2); text-shadow: 0 0 40px rgba(168, 85, 247, .6); }
.hero-sub { margin-top: 14px; color: #d7cff0; font-size: clamp(15px, 1.4vw, 18px); max-width: 560px; }
.hero-sub b { color: var(--purple-2); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #cfc5e8; font-weight: 600; }
.hero-badge i { color: var(--purple-2); font-size: 16px; }
.hero-search {
  margin-top: 26px; display: flex; gap: 10px; max-width: 600px;
}
.hero-search input {
  flex: 1; background: rgba(10, 7, 18, .85);
  border: 1px solid #3a2d5c; border-radius: 10px;
  padding: 14px 18px; color: var(--text); font-size: 15px;
  outline: none; transition: .18s;
}
.hero-search input:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(139, 61, 255, .22); }
.hero-search input::placeholder { color: #6d6484; }

.hero-art { position: relative; height: auto; display: flex; align-items: flex-end; justify-content: center; }
.hero-figures { display: flex; align-items: stretch; gap: 10px; width: 100%; height: auto; }
.hero-figure {
  flex: 1; aspect-ratio: 4/5; border-radius: 16px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; border: 1px solid rgba(168, 85, 247, .28);
  min-width: 0; transition: transform .25s;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}
.hero-figure:hover { transform: translateY(-8px); }
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-figure::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 62%, rgba(8, 6, 13, .94)); }
.hero-figure span {
  position: relative; z-index: 2; padding-bottom: 14px;
  font-weight: 900; font-size: 14px; letter-spacing: .06em; text-align: center;
  text-shadow: 0 2px 12px #000;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 34px; }
  .hero-art { display: none; }
}

/* ---------- layout sections ---------- */
.section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--purple-2); }
.section-link { color: var(--muted); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.section-link:hover { color: var(--purple-2); }

.layout-main { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 1080px) { .layout-main { grid-template-columns: 1fr; } }

/* ---------- game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.game-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: .22s; display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, .55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(168, 85, 247, .2);
}
.game-cover {
  position: relative; aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 13, 31, .95)); }
.game-cover-word {
  position: absolute; z-index: 2; bottom: 10px; left: 0; right: 0;
  text-align: center; font-weight: 900; font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 2px 10px #000, 0 0 30px rgba(0, 0, 0, .8);
  padding: 0 8px;
}
.game-cover-sigil {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; opacity: .18; transform: rotate(-12deg);
}
.game-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-name { font-size: 15px; font-weight: 700; text-align: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: #1c1430; color: #b9a7e0; border: 1px solid #332752;
}
.btn-sources { width: 100%; margin-top: auto; }
.game-meta { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; }

/* ---------- sidebar panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.panel-title i { color: var(--purple-2); }

.update-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #1f1833; }
.update-item:last-child { border-bottom: none; padding-bottom: 0; }
.update-thumb {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
  border: 1px solid rgba(168, 85, 247, .25);
  position: relative; overflow: hidden;
}
.update-thumb .cover-img { z-index: 1; }
.update-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.update-letter { position: relative; z-index: 0; }
.update-text { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.update-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- bottom tri-grid ---------- */
.tri-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 1080px) { .tri-grid { grid-template-columns: 1fr; } }

.trusted-row { display: flex; gap: 10px; margin-top: 14px; }
.trusted-badge {
  flex: 1; aspect-ratio: 1.25; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: #cfc5e8; transition: .18s; text-align: center; padding: 6px;
}
.trusted-badge:hover { border-color: var(--purple); transform: translateY(-3px); }
.trusted-badge b {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px; color: #0a0712;
}

.discord-panel { position: relative; overflow: hidden; }
.discord-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 100%, rgba(168, 85, 247, .28), transparent 70%);
}
.discord-panel > * { position: relative; }
.discord-emoji { font-size: 84px; color: #a855f7; position: absolute; right: 6px; bottom: -10px; opacity: .5; transform: rotate(-8deg); }

.safety-list { display: flex; flex-direction: column; gap: 11px; }
.safety-item { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #d7cff0; }
.safety-item i { color: #4ade80; font-size: 15px; flex-shrink: 0; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding: 40px 0 26px;
  background: radial-gradient(800px 320px at 20% 0%, rgba(139, 61, 255, .18), transparent 65%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.03em; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 720px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--purple-2); }
.crumbs span { opacity: .5; }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.search-field {
  flex: 1; min-width: 220px; position: relative;
}
.search-field input {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px 11px 40px; color: var(--text);
  outline: none; font-size: 14px;
}
.search-field input:focus { border-color: var(--purple-2); }
.search-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.chip {
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  transition: .16s;
}
.chip:hover { color: var(--text); border-color: #46356f; }
.chip.active { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(139, 61, 255, .35); }

/* ---------- source rows ---------- */
.source-list { display: flex; flex-direction: column; gap: 12px; }
.source-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: .18s;
}
.source-row:hover { border-color: rgba(168, 85, 247, .5); background: var(--panel-2); }
.source-logo {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; font-weight: 900; color: #0a0712; flex-shrink: 0;
  overflow: hidden; border: 1px solid rgba(168, 85, 247, .22);
}
.source-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.source-logo.zoomable { cursor: zoom-in; transition: border-color .15s ease, transform .15s ease; }
.source-logo.zoomable:hover { border-color: var(--purple-2); transform: scale(1.04); }

/* ---------- screenshot gallery ---------- */
.source-gallery-panel { margin-bottom: 16px; }
.gallery {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #0b0714; border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 200px;
}
.gallery-img {
  width: 100%; max-height: 540px; object-fit: contain; display: block;
  cursor: zoom-in;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(14, 9, 26, .82); color: #e9e2ff; font-size: 17px;
  border: 1px solid rgba(168, 85, 247, .35);
  transition: background .15s ease, transform .15s ease;
}
.gallery-nav:hover { background: var(--purple); color: #0a0712; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.gallery-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(168, 85, 247, .28); border: none; transition: background .15s ease, transform .15s ease;
}
.gallery-dot.active { background: var(--purple-2); transform: scale(1.25); }

/* ---------- image lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 3, 14, .88);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
  cursor: zoom-out; animation: lb-in .15s ease;
}
.lightbox img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 14px; border: 1px solid rgba(168, 85, 247, .35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
  background: #0b0714;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.src-logo-thumb {
  width: 34px; height: 34px; border-radius: 8px; object-fit: cover;
  border: 1px solid rgba(168, 85, 247, .25); vertical-align: middle; margin-right: 8px;
}
.source-name { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.source-desc { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.source-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 11.5px; color: #8c82a8; }
.source-meta b { color: #cbbfe8; font-weight: 600; }
.pill { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.pill-free { background: rgba(74, 222, 128, .12); color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); }
.pill-paid { background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .3); }
.pill-verified { background: rgba(74, 222, 128, .12); color: #4ade80; border: 1px solid rgba(74, 222, 128, .3); }
.pill-unverified { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248, 113, 113, .3); }
.source-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 130px; }

@media (max-width: 760px) {
  .source-row { grid-template-columns: 52px 1fr; }
  .source-logo { width: 52px; height: 52px; font-size: 21px; }
  .source-actions { grid-column: 1 / -1; flex-direction: row; }
  .source-actions .btn { flex: 1; }
}

/* ---------- offsets ---------- */
.offset-section { margin-bottom: 34px; }
.offset-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.offset-head .mini-cover {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; text-align: center; line-height: 1;
}
.offset-head h3 { font-size: 18px; font-weight: 800; }
.offset-head small { color: var(--muted); font-size: 12px; }

.offset-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offset-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 12px 14px; background: var(--panel-2);
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.offset-table td { padding: 12px 14px; border-bottom: 1px solid #1d1730; font-size: 13.5px; vertical-align: middle; }
.offset-table tr:last-child td { border-bottom: none; }
.offset-table tr:hover td { background: rgba(139, 61, 255, .05); }
.offset-name { font-weight: 700; }
.offset-value {
  font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  background: #0b0715; border: 1px solid #2c2148; border-radius: 7px;
  padding: 4px 9px; color: #c4b5fd; display: inline-block;
}
.copy-btn {
  background: #1c1430; border: 1px solid #332752; color: var(--muted);
  border-radius: 7px; padding: 5px 10px; font-size: 11.5px; font-weight: 600;
  transition: .15s; display: inline-flex; align-items: center; gap: 5px;
}
.copy-btn:hover { color: #fff; border-color: var(--purple); }
.copy-btn.done { color: #4ade80; border-color: rgba(74, 222, 128, .4); }
.offset-note { font-size: 11.5px; color: #6d6484; margin-top: 8px; }

@media (max-width: 860px) {
  .offset-table thead { display: none; }
  .offset-table, .offset-table tbody, .offset-table tr, .offset-table td { display: block; width: 100%; }
  .offset-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .offset-table td { border: none; padding: 5px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .offset-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
}

/* ---------- detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; }
.detail-cover .big-word { font-size: clamp(34px, 6vw, 76px); font-weight: 900; letter-spacing: .04em; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); text-align: center; padding: 0 20px; }

.detail-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  padding: 26px;
  display: flex; align-items: center;
  min-height: 300px;
}
.detail-hero-bg { position: absolute; inset: 0; z-index: 0; }
.detail-hero-bg .cover-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.18);
  opacity: .55;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 6, 13, .9), rgba(8, 6, 13, .45) 55%, rgba(8, 6, 13, .8));
}
.detail-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 26px; width: 100%; }
.detail-poster {
  width: 210px; aspect-ratio: 4/5; flex-shrink: 0;
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .6);
}
.detail-poster .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-copy h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.detail-hero-copy p { margin: 8px 0 14px; font-size: 14.5px; }
@media (max-width: 640px) {
  .detail-hero { padding: 18px; min-height: 0; }
  .detail-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .detail-poster { width: 150px; }
}

.prose h2 { font-size: 20px; margin: 22px 0 10px; font-weight: 800; }
.prose h3 { font-size: 16px; margin: 18px 0 8px; font-weight: 700; }
.prose p { color: #cfc5e8; margin-bottom: 10px; }
.prose ol, .prose ul { padding-left: 22px; color: #cfc5e8; margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.stat-box small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 3px; }
.stat-box b { font-size: 13.5px; font-weight: 700; }

.rating-stars { color: #fbbf24; font-size: 15px; letter-spacing: 2px; }
.rating-stars .off { color: #3d3457; }

.review-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.review {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px;
}
.review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: 13.5px; }
.review-date { font-size: 11px; color: var(--muted); }
.review p { font-size: 13px; color: #cfc5e8; }

/* ---------- forms ---------- */
.form-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; max-width: 460px; margin: 0 auto;
}
.form-card.wide { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #cfc5e8; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 13px; color: var(--text); font-size: 14px;
  outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(139, 61, 255, .18); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-note a { color: var(--purple-2); font-weight: 600; }
.form-error { color: #f87171; font-size: 12.5px; margin-top: 8px; display: none; }

/* ---------- community ---------- */
.post-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; transition: .16s;
}
.post-card:hover { border-color: rgba(168, 85, 247, .4); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #8b3dff, #6d28d9);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
.post-author { font-weight: 700; font-size: 13.5px; }
.post-time { font-size: 11px; color: var(--muted); }
.post-title { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.post-body { font-size: 13px; color: #cfc5e8; }
.post-foot { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.post-foot button { background: none; border: none; color: var(--muted); font-size: 12px; display: inline-flex; gap: 5px; align-items: center; transition: .15s; }
.post-foot button:hover { color: var(--purple-2); }
.post-foot button.liked { color: var(--purple-2); }

/* ---------- admin ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-tab {
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: .15s;
}
.admin-tab.active { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border-color: transparent; }
.admin-pane { display: none; }
.admin-pane.active { display: block; }

.data-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 11px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #1d1730; font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.danger-btn { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #f87171; border-radius: 7px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; }
.danger-btn:hover { background: rgba(248, 113, 113, .2); }
.warn-input {
  width: 100%; min-width: 170px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px; color: var(--text);
  font-size: 12.5px; outline: none; transition: .15s;
}
.warn-input::placeholder { color: #6d6484; }
.warn-input:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(139, 61, 255, .18); }

/* ---------- game warning banner ---------- */
.game-warning {
  display: flex; align-items: flex-start; gap: 11px;
  margin-top: 14px; padding: 13px 16px;
  border: 1px solid rgba(251, 191, 36, .38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .13), rgba(251, 191, 36, .03));
  color: #fde68a; font-size: 13.5px; line-height: 1.55;
}
.game-warning i { color: #fbbf24; font-size: 15px; margin-top: 2px; flex-shrink: 0; }

/* ---------- toast ---------- */
#toast-host { position: fixed; bottom: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1a1230; border: 1px solid rgba(168, 85, 247, .45);
  color: var(--text); padding: 12px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  animation: toastIn .22s ease;
  max-width: 340px;
}
.toast.err { border-color: rgba(248, 113, 113, .5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: #0a0712; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding: 40px 0 28px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #cfc5e8; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; transition: .14s; }
.footer-col a:hover { color: var(--purple-2); }
.footer-bottom { border-top: 1px solid #1b152c; padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #6d6484; }

/* ---------- misc ---------- */
.cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.game-cover .game-cover-word, .game-cover .game-cover-sigil { z-index: 2; }
.detail-cover .cover-img { z-index: 0; }
.detail-cover .big-word { position: relative; z-index: 2; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 38px; opacity: .4; margin-bottom: 12px; display: block; }
.skeleton { background: var(--panel); border-radius: var(--radius); height: 220px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
