:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --panel: #111115;
  --panel-high: #15151a;
  --text: #f7f7f8;
  --muted: #96969f;
  --line: rgba(255, 255, 255, .09);
  --line-high: rgba(255, 255, 255, .15);
  --red: #ff1646;
  --red-high: #ff315b;
  --green: #50e394;
  --shell: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 22, 70, .09), transparent 35rem),
    radial-gradient(circle at 88% 32%, rgba(95, 49, 210, .04), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.ambient-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
  pointer-events: none;
}

.ambient-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

main,
footer {
  position: relative;
  z-index: 1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: black;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

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

:where(a, button):focus-visible {
  outline: 3px solid rgba(255, 49, 91, .75);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(8, 8, 10, .86);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand img { object-fit: contain; }
.brand span strong { color: var(--red); }
.brand span b { color: #fff; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

.desktop-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease;
}

.desktop-nav a:hover { color: white; }
.desktop-nav a.active { color: white; background: rgba(255,255,255,.075); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .56; transform: none; box-shadow: none; }
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--red-high), #e50036);
  box-shadow: 0 10px 30px rgba(255, 22, 70, .18);
}
.button-primary:hover { box-shadow: 0 13px 36px rgba(255, 22, 70, .28); }
.button-outline { border-color: var(--line-high); background: rgba(255,255,255,.025); }
.button-outline:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.055); }
.button-quiet { color: var(--muted); }
.button-quiet:hover { color: white; }
.button-large { min-height: 50px; padding: 0 21px; border-radius: 13px; font-size: 14px; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  cursor: pointer;
}
.menu-button span:not(.visually-hidden) { width: 17px; height: 1px; background: white; transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  padding: 12px;
  border: 1px solid var(--line-high);
  border-radius: 16px;
  background: rgba(15, 15, 18, .98);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; justify-content: space-between; padding: 14px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.mobile-nav a:hover, .mobile-nav a.active { color: white; background: rgba(255,255,255,.055); }
.mobile-nav a span { color: #606069; font-size: 12px; }

.hero {
  position: relative;
  min-height: 790px;
  padding: 150px 0 94px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-high), transparent);
}

.hero-orb { position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.hero-orb-one { width: 490px; height: 490px; right: -160px; top: 100px; background: radial-gradient(circle, rgba(255,22,70,.13), transparent 68%); }
.hero-orb-two { width: 380px; height: 380px; left: -250px; bottom: 20px; background: radial-gradient(circle, rgba(255,22,70,.07), transparent 70%); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 34px;
}

.hero-copy { width: 100%; text-align: left; }

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 25px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #b7b7bf;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(80,227,148,.1); }

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(58px, 5.4vw, 80px);
  line-height: .93;
  letter-spacing: -.075em;
  font-weight: 880;
}
.hero h1 span { color: var(--red); }

.hero-copy > p {
  max-width: 470px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; margin-top: 33px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 30px;
  justify-content: start;
  margin-top: 46px;
}
.hero-meta div { display: grid; gap: 4px; }
.hero-meta strong { font-size: 16px; }
.hero-meta span { color: #777780; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }

.hero-gui {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
}
.hero-gui-glow {
  position: absolute;
  z-index: -1;
  inset: 26% 9% 15%;
  border-radius: 50%;
  background: rgba(255,22,70,.2);
  filter: blur(82px);
  opacity: .5;
}
.hero-gui-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 1.555 / 1;
  overflow: hidden;
}
.hero-gui img {
  position: absolute;
  top: -23.8%;
  left: -24.4%;
  width: 148.8%;
  max-width: none;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.38));
  user-select: none;
}

.value-strip { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-grid article { min-height: 158px; display: flex; align-items: flex-start; gap: 18px; padding: 42px 34px; border-right: 1px solid var(--line); }
.value-grid article:first-child { padding-left: 0; }
.value-grid article:last-child { border-right: 0; }
.value-number { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.value-grid h2 { margin: -3px 0 8px; font-size: 15px; letter-spacing: -.02em; }
.value-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.supported-section { padding: 96px 0 108px; }
.supported-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-label { display: block; color: var(--red-high); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.supported-heading h2, .cta-card h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.055em; }
.supported-heading h2 span { color: var(--red); }
.supported-heading p { max-width: 520px; margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; color: #b9b9c0; font-size: 13px; font-weight: 750; }
.text-link span { color: var(--red); transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.supported-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.compact-game {
  position: relative;
  aspect-ratio: 1.56 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  scroll-snap-align: start;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.compact-game:hover { transform: translateY(-4px); border-color: rgba(255,49,91,.55); box-shadow: 0 16px 35px rgba(0,0,0,.32); }
.compact-game > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.compact-game:hover > img { transform: scale(1.055); }
.compact-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,7,.02) 26%, rgba(5,5,7,.88)); }
.compact-title { position: absolute; left: 13px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 7px; }
.compact-title i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(80,227,148,.12); }
.compact-title h3 { min-width: 0; margin: 0; overflow: hidden; color: white; font-size: clamp(12px, 1.25vw, 16px); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }

.final-cta { padding: 0 0 120px; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 75px 32px;
  border: 1px solid var(--line-high);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 115%, rgba(255,22,70,.17), transparent 45%), linear-gradient(150deg, rgba(255,255,255,.035), transparent), #0d0d10;
  text-align: center;
}
.cta-card::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle, black, transparent 72%); }
.cta-card > * { position: relative; }
.cta-card > img { margin: 0 auto 19px; }
.cta-card p { margin: 18px auto 0; color: var(--muted); font-size: 15px; }
.cta-actions { justify-content: center; }

footer { border-top: 1px solid var(--line); color: #73737c; }
.footer-inner { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.footer-brand { font-size: 17px; }
.footer-inner p { font-size: 11px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 20px; font-size: 11px; }
.footer-links a:hover { color: white; }

.loader-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
}
.loader-modal[hidden] { display: none; }
.loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,3,5,.8);
  backdrop-filter: blur(12px);
  animation: modalFade .18s ease both;
}
.loader-dialog {
  position: relative;
  width: min(540px, 100%);
  padding: 25px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0%, rgba(255,22,70,.08), transparent 34%), #101014;
  box-shadow: 0 35px 100px rgba(0,0,0,.62), 0 0 65px rgba(255,22,70,.07);
  animation: modalEnter .22s cubic-bezier(.2,.75,.25,1) both;
}
.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8f8f98;
  background: rgba(255,255,255,.025);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: white; background: rgba(255,255,255,.065); }
.modal-heading { display: flex; align-items: center; gap: 13px; padding-right: 35px; }
.modal-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,22,70,.25); border-radius: 11px; background: rgba(255,22,70,.08); }
.modal-icon img { width: 23px; height: 23px; }
.modal-heading .section-label { font-size: 8px; }
.modal-heading h2 { margin: 4px 0 2px; font-size: 22px; letter-spacing: -.04em; }
.modal-heading p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.code-editor {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line-high);
  border-radius: 12px;
  background: #08080a;
}
.code-filebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  color: #8d8d96;
  font: 9px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
}
.code-filename { display: inline-flex; align-items: center; gap: 7px; }
.code-filename i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(255,22,70,.45); }
.code-language { color: #62626b; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.loader-code {
  margin: 0;
  overflow-x: auto;
  padding: 15px 14px 16px;
  color: #d6d6dd;
  font: 10.5px/1.55 "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
  scrollbar-width: thin;
}
.lua-function { color: #e783c7; }
.lua-object { color: #67d7ee; }
.lua-method { color: #e5d87b; }
.lua-string { color: #e6a06f; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.modal-actions .button { min-height: 44px; border-radius: 11px; font-size: 12px; }
.copy-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-status { min-height: 17px; margin: 11px 0 -4px; color: var(--green); font-size: 11px; text-align: center; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalEnter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.supported-track .reveal:nth-child(2) { transition-delay: .04s; }
.supported-track .reveal:nth-child(3) { transition-delay: .08s; }
.supported-track .reveal:nth-child(4) { transition-delay: .12s; }
.supported-track .reveal:nth-child(5) { transition-delay: .16s; }

@media (max-width: 1040px) {
  .desktop-nav, .desktop-discord { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .hero { min-height: auto; padding-top: 145px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
  .eyebrow { margin-inline: auto; }
  .hero-copy > p { max-width: 590px; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-gui { width: min(780px, 100%); margin-inline: auto; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .desktop-key { display: none; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .hero { padding: 112px 0 68px; }
  .hero-grid { gap: 43px; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 62px); }
  .hero-copy > p { margin-top: 23px; font-size: 14px; line-height: 1.65; }
  .hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 9px;
    width: auto;
    margin-top: 27px;
  }
  .hero-actions .button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
    padding-inline: 17px;
    border-radius: 12px;
    font-size: 12px;
  }
  .hero-meta {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 32px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero-meta div { align-content: center; padding: 0 7px; border-right: 1px solid var(--line); }
  .hero-meta div:last-child { border-right: 0; }
  .hero-meta strong { font-size: 15px; }
  .hero-meta span { font-size: 7.5px; line-height: 1.35; }
  .hero-gui {
    width: calc(100vw - 18px);
    margin-left: calc(50% - 50vw + 9px);
  }
  .hero-gui-crop { border-radius: 12px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article, .value-grid article:first-child { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-grid article:last-child { border-bottom: 0; }
  .supported-section { padding: 76px 0 86px; overflow: hidden; }
  .supported-heading { display: grid; align-items: start; margin-bottom: 25px; }
  .supported-heading h2 { font-size: 38px; }
  .supported-heading p { font-size: 13px; }
  .supported-track {
    width: calc(100vw - 15px);
    grid-auto-flow: column;
    grid-auto-columns: minmax(218px, 76vw);
    grid-template-columns: none;
    gap: 11px;
    padding-right: 15px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .supported-track::-webkit-scrollbar { display: none; }
  .compact-title h3 { font-size: 15px; }
  .final-cta { padding-bottom: 80px; }
  .cta-card { padding: 58px 20px; }
  .cta-card h2 { font-size: 38px; }
  .footer-inner { padding: 34px 0; grid-template-columns: 1fr; justify-items: center; }
  .footer-inner p { order: 3; margin: 0; }
  .footer-links { justify-self: auto; }
  .loader-modal { padding: 15px; }
  .loader-dialog { padding: 22px 17px 18px; border-radius: 16px; }
  .modal-heading { gap: 10px; padding-right: 27px; }
  .modal-icon { width: 37px; height: 37px; }
  .modal-heading h2 { font-size: 20px; }
  .modal-heading p { font-size: 10.5px; }
  .loader-code { padding: 14px 12px; font-size: 9px; }
  .modal-actions { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .eyebrow { margin-bottom: 20px; padding: 7px 9px; font-size: 9px; }
  .hero h1 { font-size: clamp(44px, 14vw, 52px); }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta div:last-child { display: grid; }
}

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