:root {
  --bg:       #07091a;
  --bg2:      #090b22;
  --surface:  rgba(13, 16, 48, 0.82);
  --surface2: rgba(17, 20, 64, 0.92);
  --surface3: #181c55;
  --border:   rgba(126, 138, 213, 0.22);
  --accent:   #e8c56a;
  --accent2:  #43d996;
  --text:     #eef0ff;
  --muted:    #8891c0;
  --green:    #43d996;
  --red:      #ff6b8a;
  --violet:   #9c78ff;
  --radius:   20px;
  --shadow:   0 24px 80px rgba(0, 0, 0, 0.34);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(156, 120, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(67, 217, 150, 0.1), transparent 24%),
    linear-gradient(180deg, #11103a 0%, var(--bg) 38%, #050717 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 138, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 138, 213, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 26, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}

.nav-brand span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #07091a;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(232, 197, 106, 0.28);
}

nav::after {
  content: 'Search codes, souls, guides...';
  order: 1;
  max-width: 300px;
  flex: 1 1 220px;
  border: 1px solid var(--border);
  background: rgba(4, 6, 20, 0.45);
  color: rgba(238, 240, 255, 0.52);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
}

.nav-links {
  order: 2;
  display: flex;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(232, 197, 106, 0.1);
  text-decoration: none;
}

.nav-links a.active { color: var(--accent); }

/* ── LAYOUT ── */
.page-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 18px 84px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.breadcrumb span { opacity: 0.4; }

/* ── HERO / PAGE HEADER ── */
.page-header {
  position: relative;
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.86), rgba(9, 11, 34, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 18% 0%, rgba(232, 197, 106, 0.22), transparent 32%);
  pointer-events: none;
}

.page-header > * { position: relative; }

.tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #07091a;
  margin-bottom: 14px;
}

.tag.green { background: var(--green); color: #061421; }
.tag.amber { background: var(--accent); color: #07091a; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: var(--text);
  margin-bottom: 18px;
}

.page-header p {
  font-size: 17px;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.7;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

.updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ── CODES TABLE ── */
.codes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 14px;
  background: rgba(13, 16, 48, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.codes-table th {
  text-align: left;
  padding: 10px 16px;
  background: rgba(17, 20, 64, 0.92);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.codes-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.codes-table tr:last-child td { border-bottom: none; }
.codes-table tr:hover td { background: var(--surface); }

.code-pill {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  background: rgba(4, 6, 20, 0.48);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--accent);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: all;
}

.code-pill:hover { border-color: var(--accent2); }

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.status-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-expired {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  opacity: 0.7;
}

.status-expired::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ── CALLOUT BOXES ── */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(17, 20, 64, 0.82), rgba(13, 16, 48, 0.62));
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}

.callout.green { border-color: var(--green); }
.callout.amber { border-color: var(--accent2); }
.callout strong { color: var(--text); }

/* ── STEP BOXES ── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }

.step {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  align-items: flex-start;
}

.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #07091a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-body strong { display: block; font-size: 14px; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── TIER TABLE ── */
.tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 14px;
  background: rgba(13, 16, 48, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-table th {
  text-align: left;
  padding: 10px 16px;
  background: rgba(17, 20, 64, 0.92);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.tier-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.tier-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 0 10px;
  border-radius: 4px;
}

.tier-s { color: var(--accent); }
.tier-a { color: var(--green); }
.tier-b { color: #8fb3ff; }
.tier-c { color: var(--muted); }

/* ── PROSE CONTENT ── */
.content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 62px 0 14px;
  padding-bottom: 0;
  border-bottom: none;
}

.content h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(232, 197, 106, 0.5), transparent 68%);
}

.content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.content {
  max-width: 100%;
}

.content p { margin-bottom: 16px; color: var(--muted); max-width: 860px; }
.content p strong { color: var(--text); }
.content ul, .content ol { margin: 12px 0 20px 20px; color: var(--muted); }
.content li { margin-bottom: 8px; line-height: 1.65; }
.content li strong { color: var(--text); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 2px; margin: 20px 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 16, 48, 0.72);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--surface2); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  background: rgba(4, 6, 20, 0.22);
  border-top: 0px solid var(--border);
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ── HOME HERO ── */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  align-items: center;
  column-gap: 58px;
  row-gap: 0;
  min-height: 580px;
  padding: 46px 0 62px;
  border-bottom: 1px solid rgba(126, 138, 213, 0.12);
  margin-bottom: 82px;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -9%;
  width: 760px;
  height: 560px;
  background: radial-gradient(ellipse, rgba(156, 120, 255, 0.24) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.home-hero > * {
  position: relative;
  z-index: 1;
  grid-column: 1;
}

.home-hero > .stat-badges {
  grid-column: 2;
  grid-row: 1 / span 6;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.home-hero h1 {
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: 0.9;
  margin-bottom: 22px;
  max-width: 720px;
}

.home-hero h1 span {
  color: var(--text);
  text-shadow: 0 0 36px rgba(232, 197, 106, 0.16);
}

.home-hero .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #07091a; }
.btn-secondary { background: rgba(17, 20, 64, 0.72); border: 1px solid var(--border); color: var(--text); }

.stat-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.86), rgba(13, 16, 48, 0.64));
  box-shadow: var(--shadow);
}

.stat-badge {
  background: rgba(4, 6, 20, 0.26);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.stat-badge strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

/* ── NAV GRID (homepage section cards) ── */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 46px;
}

.nav-card {
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.78), rgba(13, 16, 48, 0.74));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.nav-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-2px);
  text-decoration: none;
}

.nav-card-icon { font-size: 24px; display: block; margin-bottom: 18px; }

.nav-card-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.nav-card-desc { font-size: 13px; color: var(--muted); display: block; line-height: 1.55; }

/* ── CODES PREVIEW (homepage mini-widget) ── */
.codes-preview {
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.86), rgba(13, 16, 48, 0.66));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0 70px;
  box-shadow: var(--shadow);
}

/* ── PLAY / VIDEO HUB ── */
.play-hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin: -26px 0 70px;
}

.play-hub-main,
.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.84), rgba(13, 16, 48, 0.68));
  box-shadow: var(--shadow);
}

.play-hub-main {
  padding: 28px;
}

.play-hub-main h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
}

.play-hub-main p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 680px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  color: var(--text);
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.video-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-2px);
  text-decoration: none;
}

.video-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #07091a;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(232, 197, 106, 0.2);
}

.video-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.video-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.embedded-videos {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-embed-card {
  display: block;
  min-width: 0;
}

.video-embed-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #050717;
  margin-bottom: 14px;
}

.video-embed-card strong,
.video-embed-card span {
  display: block;
}

.video-embed-card strong {
  margin-bottom: 6px;
}

.codes-preview-hd {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.codes-preview-hd h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}

.codes-preview-hd a { font-size: 12px; font-weight: 600; }

.code-row {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}

.code-row:last-child { border-bottom: none; }

.code-row-name {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 13px;
  color: var(--accent);
  background: rgba(4, 6, 20, 0.48);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  min-width: 0;
  flex-shrink: 0;
}

.code-row-reward { font-size: 13px; color: var(--muted); flex: 1; min-width: 0; }

.copy-btn {
  background: rgba(4, 6, 20, 0.22);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); text-decoration: none; }

/* ── RELATED LINKS ── */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.related-card {
  background: linear-gradient(145deg, rgba(17, 20, 64, 0.78), rgba(13, 16, 48, 0.74));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s;
  display: block;
  color: var(--text);
}

.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── UTILITY ── */
.mt4 { margin-top: 4px; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 14px; }

@media (max-width: 600px) {
  nav { min-height: 58px; }
  nav::after { display: none; }
  .nav-links { display: none; }
  h1 { font-size: 42px; }
  .page-wrap { padding: 28px 16px 60px; }
  .home-hero { display: block; min-height: 0; padding: 42px 0 56px; margin-bottom: 44px; }
  .home-hero > .stat-badges { grid-column: auto; grid-row: auto; }
  .home-hero h1 { font-size: clamp(54px, 18vw, 76px); }
  .stat-badges { grid-template-columns: 1fr 1fr; margin-top: 28px; padding: 12px; }
  .play-hub { grid-template-columns: 1fr; margin: 0 0 48px; }
  .play-hub-main { padding: 22px; }
  .embedded-videos { grid-template-columns: 1fr; }
  .nav-grid { grid-template-columns: 1fr; }
  .code-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .codes-table { display: block; overflow-x: auto; }
  .page-header { padding: 24px; }
}
