
:root {
  --bg: #0a0d14;
  --bg-soft: #101621;
  --surface: #151c29;
  --surface-2: #1b2433;
  --surface-3: #222e40;
  --line: #314158;
  --line-soft: rgba(123, 161, 209, 0.18);
  --text: #e7eef8;
  --muted: #9eacc0;
  --accent: #55a8ff;
  --accent-2: #7e6cff;
  --cyan: #55e3db;
  --good: #65d99a;
  --warn: #ffc86a;
  --danger: #ff7c86;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(85, 168, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 90% 16%, rgba(126, 108, 255, 0.11), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; max-width: 100%; }
code, pre { font-family: "Cascadia Code", Consolas, monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(123, 161, 209, 0.14);
  background: rgba(10, 13, 20, 0.86);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1460px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(85, 168, 255, 0.24);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 0.96rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.top-nav a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 160ms ease;
}
.top-nav a:hover { color: var(--text); background: rgba(255,255,255,0.045); }
.top-nav a.active {
  color: white;
  border-color: rgba(85,168,255,0.28);
  background: linear-gradient(135deg, rgba(85,168,255,0.2), rgba(126,108,255,0.16));
}
.menu-button {
  display: none;
  margin-left: auto;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

main { position: relative; z-index: 1; }
.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 82px; }
.page-shell.wide { width: min(1460px, calc(100% - 32px)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(85,168,255,0.27);
  border-radius: 999px;
  color: #beddff;
  background: rgba(85,168,255,0.09);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }

.hero-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 58px;
}
.hero-copy h1, .page-hero h1 {
  margin: 18px 0 18px;
  max-width: 850px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.gradient-text { background: linear-gradient(90deg, #9fceff, #72e2dd 47%, #a794ff); color: transparent; background-clip: text; }
.hero-copy > p, .page-hero > p { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px rgba(85,168,255,0.2); }
.button.secondary { color: var(--text); border-color: var(--line); background: rgba(21,28,41,0.78); }
.button.ghost { color: #beddff; border-color: rgba(85,168,255,0.24); background: rgba(85,168,255,0.07); }

.hero-visual, .image-frame {
  position: relative;
  border: 1px solid rgba(123,161,209,0.2);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(34,46,64,0.9), rgba(15,20,30,0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual { padding: 16px; transform: perspective(1100px) rotateY(-4deg) rotateX(2deg); }
.hero-visual::after, .image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 24%, transparent 70%, rgba(85,168,255,0.07));
}
.hero-visual img, .image-frame img { width: 100%; border-radius: 18px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stat {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(21,28,41,0.72);
}
.stat strong { display: block; color: white; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }

.section { margin-top: 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -0.035em; }
.section-heading p { max-width: 600px; margin: 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .panel, .doc-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(28,38,54,0.88), rgba(18,24,35,0.94));
  box-shadow: 0 18px 42px rgba(0,0,0,0.2);
}
.card { padding: 22px; }
.card h3 { margin: 0 0 9px; color: white; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); }
.card-link { transition: 180ms ease; }
.card-link:hover { transform: translateY(-4px); border-color: rgba(85,168,255,0.42); }
.card-number { margin-bottom: 34px; color: #91c9ff; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.11em; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split-copy h2 { margin: 14px 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; }
.split-copy p { color: var(--muted); }
.check-list { display: grid; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 24px; color: #cbd6e5; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.56em; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--cyan)); }

.code-panel { margin-top: 26px; overflow: hidden; }
.code-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.025); }
.code-panel-header strong { font-size: 0.84rem; }
.copy-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); cursor: pointer; }
pre { margin: 0; padding: 20px; overflow: auto; color: #d8e7f7; background: #0d121b; font-size: 0.88rem; line-height: 1.55; }
code { font-size: 0.92em; }
:not(pre) > code { padding: 0.13em 0.38em; border: 1px solid var(--line-soft); border-radius: 6px; color: #bfe1ff; background: rgba(85,168,255,0.08); }

.page-hero { padding: 54px 0 16px; }
.page-hero.compact { padding-bottom: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.meta-pill, .pill, .status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #c8d6e8;
  background: rgba(255,255,255,0.035);
  font-size: 0.76rem;
  font-weight: 800;
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0; }
.search-bar {
  flex: 1 1 340px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(18,24,35,0.92);
}
.search-bar:focus { border-color: rgba(85,168,255,0.72); box-shadow: 0 0 0 4px rgba(85,168,255,0.1); }
.filter-button, .tab-button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}
.filter-button.active, .tab-button.active { color: white; border-color: rgba(85,168,255,0.45); background: rgba(85,168,255,0.17); }

.table-shell { overflow: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(16,22,33,0.88); box-shadow: var(--shadow); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 17px; text-align: left; border-bottom: 1px solid rgba(123,161,209,0.1); }
.data-table th { position: sticky; top: 0; color: #bfd0e4; background: #182130; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table tbody tr { transition: background 130ms ease; }
.data-table tbody tr:hover { background: rgba(85,168,255,0.055); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-message { color: var(--muted); text-align: center; padding: 34px !important; }
.expandable { cursor: pointer; }
.detail-row td { padding: 0; }
.detail-panel { margin: 0 15px 15px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: #111824; }
.detail-panel h3 { margin: 0 0 8px; }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.detail-panel ul { margin: 0; padding-left: 18px; color: var(--muted); }
.hidden { display: none !important; }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.docs-sidebar { position: sticky; top: 98px; padding: 16px; max-height: calc(100vh - 120px); overflow: auto; }
.docs-sidebar strong { display: block; margin-bottom: 10px; }
.docs-sidebar a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--muted); font-size: 0.83rem; }
.docs-sidebar a:hover { color: white; background: rgba(255,255,255,0.045); }
.docs-content { min-width: 0; display: grid; gap: 16px; }
.doc-card { padding: 22px; scroll-margin-top: 108px; }
.doc-card.featured { border-color: rgba(85,168,255,0.34); background: linear-gradient(145deg, rgba(85,168,255,0.12), rgba(18,24,35,0.95) 46%, rgba(126,108,255,0.08)); }
.doc-card h2, .doc-card h3 { margin: 0 0 9px; color: white; }
.doc-card .desc, .doc-card p { color: var(--muted); }
.doc-card pre { margin-top: 14px; border: 1px solid rgba(123,161,209,0.11); border-radius: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.callout { margin-top: 13px; padding: 12px 14px; border: 1px dashed rgba(85,168,255,0.28); border-radius: 12px; color: #c1d2e5; background: rgba(85,168,255,0.055); }
.small-note { color: var(--muted); font-size: 0.86rem; }

.ai-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 12px; }
.ai-summary .stat { min-height: 86px; }
.ai-tabs { display: flex; gap: 8px; margin-top: 24px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.ai-card-grid { display: grid; gap: 15px; }
.status { text-transform: uppercase; letter-spacing: 0.05em; }
.status.good { color: var(--good); border-color: rgba(101,217,154,0.26); background: rgba(101,217,154,0.08); }
.status.warn { color: var(--warn); border-color: rgba(255,200,106,0.26); background: rgba(255,200,106,0.08); }
.status.danger { color: var(--danger); border-color: rgba(255,124,134,0.26); background: rgba(255,124,134,0.08); }
.route { color: #91c9ff; font-weight: 800; }
.func { color: #aaf28f; font-weight: 800; }

.game-hero { padding-top: 40px; }
.game-hero .hero-grid { min-height: 640px; }
.glow-card { position: relative; overflow: hidden; }
.glow-card::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 180deg, transparent, rgba(85,168,255,0.12), transparent, rgba(126,108,255,0.12), transparent); animation: slow-spin 16s linear infinite; }
.glow-card > * { position: relative; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 26px; }
.timeline-step { position: relative; min-height: 170px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(21,28,41,0.86); }
.timeline-step strong { display: block; margin-bottom: 9px; color: white; }
.timeline-step span { color: var(--muted); font-size: 0.88rem; }
.timeline-step .step-index { margin-bottom: 28px; color: #8ec6ff; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; }
.reward-panel { padding: 32px; border-color: rgba(126,108,255,0.38); background: linear-gradient(145deg, rgba(126,108,255,0.16), rgba(17,23,34,0.95) 48%, rgba(85,227,219,0.08)); }
.reward-panel h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.requirement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.requirement { padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(10,13,20,0.42); }
.requirement strong { display: block; margin-bottom: 6px; }
.requirement span { color: var(--muted); font-size: 0.85rem; }

.profile-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr) 330px; gap: 18px; }
.leaderboard, .profile-card, .giveaway-banner { padding: 20px; }
.leaderboard h2 { margin: 0 0 12px; }
.leaderboard-list { display: grid; gap: 8px; max-height: 500px; overflow: auto; }
.leaderboard-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,0.025); }
.leaderboard-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-center { display: grid; gap: 18px; }
.profile-card { display: flex; align-items: center; gap: 20px; }
.profile-pic { width: 140px; height: 140px; border-radius: 22px; object-fit: cover; background: var(--surface-3); }
.profile-details { display: grid; gap: 4px; }
.display-name { font-size: 1.8rem; font-weight: 900; }
.username { color: var(--muted); }
.giveaway-container { display: grid; gap: 10px; }
.giveaway-banner { color: #d6e2f2; }
.giveaway-banner button { margin-top: 10px; }

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  border-top: 1px solid rgba(123,161,209,0.14);
  color: var(--muted);
  font-size: 0.84rem;
}
.site-footer > div:first-child { display: grid; gap: 4px; }
.site-footer strong { color: var(--text); }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: white; }
.site-footer p { grid-column: 1 / -1; margin: 8px 0 0; }

@media (max-width: 1120px) {
  .top-nav { display: none; position: absolute; top: 68px; left: 16px; right: 16px; padding: 12px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: #111824; box-shadow: var(--shadow); }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 11px 12px; }
  .menu-button { display: block; }
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 34px; min-height: auto; }
  .hero-visual { transform: none; max-width: 760px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .requirement-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; display: flex; gap: 5px; overflow-x: auto; }
  .docs-sidebar strong { display: none; }
  .docs-sidebar a { white-space: nowrap; }
  .profile-layout { grid-template-columns: 1fr 1fr; }
  .profile-center { grid-column: 1 / -1; grid-row: 1; }
  .ai-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-shell, .page-shell, .site-footer { width: min(100% - 22px, 100%); }
  .brand-copy small { display: none; }
  .page-shell { padding-top: 34px; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(2.45rem, 15vw, 4.4rem); }
  .stat-row, .card-grid, .card-grid.three, .card-grid.two, .detail-columns, .timeline, .requirement-grid, .profile-layout, .ai-summary { grid-template-columns: 1fr; }
  .section { margin-top: 60px; }
  .section-heading { align-items: start; flex-direction: column; }
  .hero-visual { padding: 9px; border-radius: 20px; }
  .top-nav { top: 68px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .profile-center { grid-column: auto; grid-row: auto; }
  .profile-card { align-items: flex-start; flex-direction: column; }
  .data-table { min-width: 680px; }
}

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




/* UI concept poll */
.poll-hero{max-width:1040px}.poll-instructions{margin-top:32px;padding:24px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:end;gap:30px}.poll-instructions h2,.poll-footer-panel h2{margin:13px 0 0;font-size:clamp(1.65rem,3vw,2.65rem);line-height:1.08;letter-spacing:-.035em}.poll-instructions p,.poll-footer-panel p{margin:0;color:var(--muted)}.concept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:34px}.concept-card{min-width:0;overflow:hidden;border:1px solid var(--line-soft);border-radius:24px;background:linear-gradient(155deg,rgba(28,38,54,.9),rgba(14,19,29,.97));box-shadow:0 22px 54px rgba(0,0,0,.28)}.concept-image{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background:#070a11;border-bottom:1px solid var(--line-soft)}.concept-image::after{content:"Open full size";position:absolute;right:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:9px;color:white;background:rgba(8,12,20,.76);backdrop-filter:blur(12px);font-size:.72rem;font-weight:800;opacity:0;transform:translateY(5px);transition:160ms ease}.concept-image:hover::after{opacity:1;transform:translateY(0)}.concept-image img{width:100%;height:100%;object-fit:contain;transition:transform 220ms ease}.concept-image:hover img{transform:scale(1.012)}.concept-copy{padding:23px}.poll-number{display:inline-flex;margin-bottom:14px;padding:7px 11px;border:1px solid rgba(85,168,255,.32);border-radius:999px;color:white;background:linear-gradient(135deg,rgba(85,168,255,.21),rgba(126,108,255,.18));font-size:.78rem;font-weight:900;letter-spacing:.13em}.concept-copy h2{margin:0 0 8px;font-size:1.55rem;letter-spacing:-.025em}.concept-copy p{margin:0;color:var(--muted)}.best-for{margin-top:14px;padding:12px 14px;border:1px solid var(--line-soft);border-radius:13px;background:rgba(255,255,255,.025);color:var(--muted);font-size:.84rem;line-height:1.5}.best-for strong{color:var(--text)}.concept-copy .actions{margin-top:18px}.concept-copy .button{width:100%;min-height:42px;font-size:.82rem}.poll-footer-panel{margin-top:34px;padding:30px;text-align:center}.poll-footer-panel p{max-width:720px;margin:12px auto 0}@media(min-width:901px){.concept-card:last-child{grid-column:1/-1;width:calc(50% - 12px);justify-self:center}}@media(max-width:900px){.concept-grid{grid-template-columns:1fr}.poll-instructions{grid-template-columns:1fr;align-items:start;gap:14px}.concept-card:last-child{width:auto;justify-self:stretch}}@media(max-width:520px){.concept-grid{gap:18px}.concept-card{border-radius:18px}.concept-copy{padding:18px}.concept-image::after{display:none}}
