:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b9c8d8;
  --panel: rgba(12, 18, 32, 0.84);
  --panel-solid: #101827;
  --line: rgba(248, 251, 255, 0.16);
  --cyan: #26d9ff;
  --pink: #ff4fcf;
  --gold: #ffd166;
  --green: #67f7a4;
  --deep: #07101e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #07101e;
}

a,
button {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(7, 16, 30, 0.78);
  border-bottom: 1px solid rgba(248, 251, 255, 0.1);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 16px rgba(38, 217, 255, 0.42));
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 26px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(700px, 86svh);
  padding: 118px clamp(18px, 5vw, 70px) 28px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #07101e;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 30, 0.9));
  pointer-events: none;
}

.hero-inner,
.section-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding-bottom: clamp(24px, 5vh, 54px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.65rem, 5.9vw, 5rem);
  line-height: 0.96;
  white-space: nowrap;
}

h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 58ch;
  margin: 20px 0 0;
  color: #d6e4f2;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 760;
  line-height: 1.46;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 950;
}

.primary-link {
  background: var(--cyan);
  color: #07101e;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24);
}

.secondary-link {
  border: 1px solid rgba(248, 251, 255, 0.24);
  background: rgba(248, 251, 255, 0.08);
  color: var(--ink);
}

.hero-metrics {
  position: relative;
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(248, 251, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 16, 30, 0.68);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 1.9rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(16px, 5vw, 70px);
  background: var(--deep);
}

.games-section {
  background:
    linear-gradient(180deg, rgba(7, 16, 30, 0.94), #101827 54%, #07101e);
}

.section-heading {
  width: 100%;
  margin: 0 0 28px;
}

.games-section .section-heading {
  width: 100%;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading p {
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.48;
}

.arcade {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  justify-content: center;
}

.game-picker,
.play-stage,
.capability-grid article,
.partner-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-picker {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.game-tab {
  width: 100%;
  min-height: 86px;
  padding: 13px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num meta";
  align-items: center;
  gap: 2px 10px;
  border: 1px solid rgba(248, 251, 255, 0.12);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.06);
  color: var(--ink);
  text-align: left;
}

.game-tab.is-active {
  border-color: var(--cyan);
  background: rgba(38, 217, 255, 0.13);
  box-shadow: 0 0 26px rgba(38, 217, 255, 0.14);
}

.game-tab span {
  grid-area: num;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.14);
  color: var(--gold);
  font-weight: 950;
}

.game-tab strong {
  grid-area: title;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.game-tab small {
  grid-area: meta;
  color: var(--muted);
  font-weight: 800;
}

.play-stage {
  overflow: hidden;
  width: 100%;
  justify-self: center;
}

.device-bar {
  min-height: 70px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.06);
}

.device-bar span {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.device-bar strong {
  font-size: 1.1rem;
}

.device-bar a {
  min-width: 72px;
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gold);
  color: #07101e;
  font-weight: 950;
}

.iframe-shell {
  width: 100%;
  min-height: 900px;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(38, 217, 255, 0.08) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, rgba(255, 79, 207, 0.07) 0 1px, transparent 1px 44px),
    radial-gradient(circle at 74% 18%, rgba(255, 209, 102, 0.14), transparent 30%),
    #050a13;
}

iframe {
  display: block;
  width: min(100%, 390px);
  height: 844px;
  min-height: 844px;
  border: 0;
  border-radius: 8px;
  background: #050a13;
  box-shadow:
    0 0 0 3px rgba(248, 251, 255, 0.8),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.studio-section {
  background: #07101e;
}

.capability-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-grid article {
  min-height: 210px;
  padding: 18px;
}

.capability-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 79, 207, 0.15);
  color: var(--pink);
  font-weight: 950;
}

.capability-grid p,
.partner-panel p {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.45;
}

.partners-section {
  background:
    linear-gradient(180deg, #07101e, #0e2630);
}

.partner-panel {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 5vw, 48px);
}

.partner-panel p {
  max-width: 68ch;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.partner-list span {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(248, 251, 255, 0.18);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.07);
  color: #dce9f6;
  font-weight: 900;
}

.contact-section {
  background: #07101e;
}

.contact-inner {
  display: grid;
  gap: 18px;
}

.contact-section h2 {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.15vw, 2rem);
  line-height: 1.14;
}

.contact-actions {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}

.contact-actions span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

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

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

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

@media (min-width: 760px) {
  .contact-section h2 {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 22px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8.5vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-content {
    padding-bottom: 22px;
  }

  .hero-copy {
    margin-top: 16px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-metrics,
  .game-picker,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 58px;
    padding: 9px 11px;
  }

  .hero-metrics strong {
    font-size: 1.45rem;
  }

  .game-tab {
    min-height: 74px;
  }

  .iframe-shell {
    min-height: 520px;
    padding: 0;
    background: #050a13;
  }

  iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: 0;
    box-shadow: none;
  }
}
