:root {
  --bg: #07101c;
  --bg-deep: #030711;
  --panel: rgba(16, 27, 45, 0.82);
  --panel-strong: rgba(22, 35, 58, 0.95);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --blue: #2f81ff;
  --violet: #7c3aed;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 129, 255, 0.16), transparent 36rem),
    linear-gradient(180deg, #07101c 0%, #081424 48%, #030711 100%);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(3, 7, 17, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 50%;
  color: #dbeafe;
  background: radial-gradient(circle, #7c3aed 0 28%, #172554 29% 70%, transparent 71%);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.55);
  font-weight: 900;
}

.critter-face {
  position: relative;
  width: 25px;
  height: 21px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(135deg, #f8fafc, #93c5fd 48%, #7c3aed);
  box-shadow: inset 0 -5px 10px rgba(15, 23, 42, 0.42);
}

.critter-face::before,
.critter-face::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 10px;
  height: 13px;
  border-radius: 80% 12% 80% 12%;
  background: #93c5fd;
}

.critter-face::before {
  left: 1px;
  transform: rotate(-28deg);
}

.critter-face::after {
  right: 1px;
  transform: rotate(28deg) scaleX(-1);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #d7deea;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  display: grid;
  align-items: center;
  min-height: 72px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: #58a6ff;
  border-bottom-color: #2f81ff;
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-button,
.region-button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  font: inherit;
}

.icon-button {
  width: 40px;
  font-size: 25px;
}

.region-button {
  padding: 0 16px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 318px;
  background-image: url("assets/hero-bg.png"), url("assets/hero-world.svg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 17, 0.94) 0%, rgba(3, 7, 17, 0.58) 42%, rgba(3, 7, 17, 0.18) 100%),
    linear-gradient(180deg, transparent 70%, #07101c 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 54px 6vw 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8b5cf6;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.95;
}

.hero-copy {
  max-width: 540px;
  color: #e3e8f3;
  font-size: 19px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.wide-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-button {
  min-width: 190px;
  background: linear-gradient(135deg, #2f81ff, #7c3aed);
  box-shadow: 0 14px 32px rgba(47, 129, 255, 0.25);
}

.secondary-button {
  min-width: 210px;
  border: 1px solid rgba(124, 58, 237, 0.75);
  background: rgba(7, 16, 28, 0.76);
}

.page-shell {
  width: min(1740px, 100%);
  margin: 0 auto;
  padding: 16px 6vw 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.quick-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.82));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.quick-card strong,
.quick-card small {
  display: block;
}

.quick-card small {
  margin-top: 4px;
  color: #cad3e2;
  line-height: 1.35;
}

.quick-card b {
  color: #c4d8ff;
  font-size: 22px;
}

.quick-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: 1000;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.18);
}

.quick-icon::before,
.quick-icon::after {
  content: "";
  position: absolute;
}

.icon-book::before {
  width: 25px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.18);
}

.icon-book::after {
  width: 3px;
  height: 20px;
  background: rgba(255, 255, 255, 0.85);
}

.icon-paw::before {
  width: 18px;
  height: 16px;
  top: 24px;
  border-radius: 50% 50% 42% 42%;
  background: #fff;
}

.icon-paw::after {
  width: 7px;
  height: 7px;
  top: 13px;
  left: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 10px -4px 0 #fff, 21px 0 0 #fff, 5px 12px 0 #fff;
}

.icon-gift::before {
  width: 27px;
  height: 24px;
  bottom: 11px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 11px 0 0 rgba(22, 163, 74, 0.25);
}

.icon-gift::after {
  width: 33px;
  height: 6px;
  top: 13px;
  border-radius: 4px;
  background: #fff;
}

.icon-boss::before {
  width: 28px;
  height: 22px;
  top: 18px;
  border-radius: 10px 10px 14px 14px;
  background: #fff;
}

.icon-boss::after {
  width: 12px;
  height: 16px;
  top: 9px;
  left: 10px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 21px 0 0 #fff;
}

.blue { background: linear-gradient(135deg, #2563eb, #6366f1); }
.violet { background: linear-gradient(135deg, #7c3aed, #d946ef); }
.green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.amber { background: linear-gradient(135deg, #f97316, #f59e0b); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 20px;
}

.main-column {
  display: grid;
  gap: 14px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.panel,
.ad-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel {
  padding: 14px;
}

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

.section-heading h2,
.compact h2 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

.section-heading a,
.updated {
  color: #58a6ff;
  font-size: 14px;
  font-weight: 800;
}

.tier-panel {
  display: grid;
  gap: 8px;
}

.tier-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
}

.tier-label {
  display: grid;
  place-items: center;
  min-height: 68px;
  border-radius: var(--radius);
  text-align: center;
  text-transform: uppercase;
}

.tier-label strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.tier-label small {
  font-size: 11px;
  font-weight: 900;
}

.tier-s { background: linear-gradient(135deg, #ef4444, #f87171); }
.tier-a { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.tier-b { background: linear-gradient(135deg, #d97706, #facc15); }

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

.tatari-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.78));
}

.tatari-card strong,
.tatari-card small {
  display: block;
}

.tatari-card small {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  position: relative;
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 46% 46% 42% 42%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -12px 18px rgba(15, 23, 42, 0.38), inset 0 10px 14px rgba(255, 255, 255, 0.22), 0 0 18px rgba(47, 129, 255, 0.18);
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
}

.avatar::before {
  top: -7px;
  left: 6px;
  width: 12px;
  height: 16px;
  border-radius: 85% 12% 85% 12%;
  background: inherit;
  transform: rotate(-28deg);
  box-shadow: 24px 10px 0 -1px currentColor;
}

.avatar::after {
  top: 18px;
  left: 13px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #07101c;
  box-shadow: 17px 0 0 #07101c, 8px 11px 0 -2px rgba(255, 255, 255, 0.8);
}

.frost { color: #93c5fd; background: radial-gradient(circle at 35% 24%, #dbeafe, #3b82f6 45%, #1e3a8a 78%); }
.spark { color: #c4b5fd; background: radial-gradient(circle at 35% 24%, #fde68a, #8b5cf6 45%, #4c1d95 78%); }
.nature { color: #86efac; background: radial-gradient(circle at 35% 24%, #bbf7d0, #22c55e 45%, #14532d 78%); }
.ember { color: #fdba74; background: radial-gradient(circle at 35% 24%, #fed7aa, #f97316 45%, #7c2d12 78%); }
.shadow { color: #a78bfa; background: radial-gradient(circle at 35% 24%, #ddd6fe, #6d28d9 45%, #2e1065 78%); }
.aqua { color: #67e8f9; background: radial-gradient(circle at 35% 24%, #cffafe, #06b6d4 45%, #164e63 78%); }
.leaf { color: #bef264; background: radial-gradient(circle at 35% 24%, #dcfce7, #84cc16 45%, #365314 78%); }
.dusk { color: #c4b5fd; background: radial-gradient(circle at 35% 24%, #f5d0fe, #4f46e5 45%, #1e1b4b 78%); }
.flame { color: #fca5a5; background: radial-gradient(circle at 35% 24%, #fee2e2, #ef4444 45%, #7f1d1d 78%); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 155px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 8, 20, 0.15), rgba(5, 8, 20, 0.96)),
    radial-gradient(circle at 35% 0%, rgba(96, 165, 250, 0.55), transparent 48%),
    radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.56), transparent 42%),
    #111827;
}

.guide-card h3 {
  margin: 48px 0 6px;
  font-size: 18px;
}

.guide-card p {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.red { background: #dc2626; }
.tag.green { background: #16a34a; }
.tag.blue { background: #2563eb; }
.tag.purple { background: #7c3aed; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.code-list {
  display: grid;
  gap: 8px;
}

.code-list div {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
}

code {
  color: #bfdbfe;
  font-weight: 900;
}

.code-list span,
.news-list span,
.popular-list,
.compact p,
.site-footer p {
  color: var(--muted);
}

.code-list b {
  color: #86efac;
  font-size: 12px;
  text-transform: uppercase;
}

.news-list,
.popular-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.ad-card {
  min-height: 220px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(6, 12, 28, 0.86), rgba(20, 12, 48, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.7), transparent 42%);
}

.ad-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 11px;
}

.ad-card strong {
  display: block;
  max-width: 180px;
  font-size: 28px;
  line-height: 1.05;
}

.ad-card p {
  max-width: 220px;
  color: #dbeafe;
}

.ad-card button {
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, #2f81ff, #7c3aed);
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.compact {
  padding: 16px;
}

.compact h2 {
  margin-bottom: 12px;
}

.popular-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.popular-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  color: white;
  background: rgba(148, 163, 184, 0.28);
}

.wide-button {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #2f81ff, #7c3aed);
}

.wide-button.alt {
  background: rgba(47, 129, 255, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 34px;
  padding: 28px 6vw;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 17, 0.88);
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  line-height: 1.45;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  color: #cbd5e1;
  font-weight: 700;
}

.article-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(7, 16, 28, 0.92)),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.2), transparent 34rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 34px;
}

.article-card .lead {
  max-width: 780px;
  color: #d8e2f2;
  font-size: 20px;
  line-height: 1.55;
}

.article-card a {
  color: #58a6ff;
  font-weight: 800;
}

.article-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.article-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.article-section p,
.steps,
.checks {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.65;
}

.steps,
.checks {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.data-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
}

.data-table > div {
  display: grid;
  grid-template-columns: 180px 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
}

.database-table > div {
  grid-template-columns: 150px 140px 80px 1fr 120px;
}

.data-table > div:first-child {
  border-top: 0;
}

.data-table .table-head {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.98);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table b {
  color: #86efac;
  font-size: 12px;
  text-transform: uppercase;
}

.article-tier {
  margin-bottom: 10px;
}

.article-grid {
  border-top: 0;
  padding-top: 0;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-link-card,
.role-grid article,
.tip-box {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
}

.guide-link-card {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.guide-link-card strong {
  font-size: 18px;
}

.guide-link-card span {
  color: var(--muted);
}

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

.role-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.role-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.tip-box {
  margin-top: 14px;
  padding: 14px 16px;
  color: #dbeafe;
  line-height: 1.55;
}

.priority-list,
.build-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.priority-list article,
.build-list article,
.faq-block details {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.priority-list article,
.build-list article {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
}

.priority-list span,
.build-list p,
.faq-block p {
  color: var(--muted);
  line-height: 1.55;
}

.build-list p,
.faq-block p {
  margin: 0;
}

.faq-block {
  display: grid;
  gap: 12px;
}

.faq-block h2 {
  margin-bottom: 0;
}

.faq-block details {
  padding: 14px 16px;
}

.faq-block summary {
  cursor: pointer;
  color: #f8fafc;
  font-weight: 900;
}

.faq-block details p {
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .main-nav a {
    min-height: 44px;
  }

  .content-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px 0;
  }

  .brand strong {
    font-size: 15px;
  }

  .header-actions {
    justify-self: end;
  }

  .region-button {
    display: none;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 44px 18px 96px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .page-shell {
    padding: 14px 18px 0;
  }

  .content-grid,
  .card-grid,
  .split,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .content-grid {
    margin-top: -70px;
  }

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

  .tier-label {
    min-height: 54px;
  }

  .tier-items {
    grid-template-columns: 1fr;
  }

  .code-list div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 26px 18px;
  }

  .footer-links {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .article-shell {
    padding: 28px 18px 44px;
  }

  .article-card {
    padding: 22px;
  }

  .data-table > div {
    grid-template-columns: 1fr;
  }

  .database-table > div {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }
}
