@font-face {
  font-family: "DigitFusionDisplay";
  src: url("./fonts/TitanOne.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DigitFusionBody";
  src: url("./fonts/Baloo.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --home-bg: #060816;
  --home-bg-deep: #03050d;
  --home-text: #eff8f5;
  --home-text-muted: rgba(213, 224, 249, 0.74);
  --home-line: rgba(83, 249, 229, 0.18);
  --home-line-strong: rgba(255, 96, 201, 0.34);
  --home-surface: rgba(9, 16, 32, 0.82);
  --home-surface-strong: rgba(8, 12, 25, 0.94);
  --home-surface-soft: rgba(255, 255, 255, 0.06);
  --home-accent: #5ef8e7;
  --home-accent-strong: #ff56c5;
  --home-accent-warm: #ffb74d;
  --home-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  --home-glow-cyan: 0 0 0 1px rgba(94, 248, 231, 0.16), 0 0 34px rgba(94, 248, 231, 0.1);
  --home-glow-pink: 0 0 0 1px rgba(255, 86, 197, 0.16), 0 0 34px rgba(255, 86, 197, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--home-text);
  font-family: "DigitFusionBody", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(94, 248, 231, 0.16), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(255, 86, 197, 0.18), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(255, 183, 77, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(5, 8, 19, 0.95), rgba(8, 11, 27, 0.97) 42%, rgba(4, 7, 18, 0.99)),
    url("./bg.png") center/cover fixed no-repeat;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    repeating-linear-gradient(
      0deg,
      rgba(94, 248, 231, 0.045) 0,
      rgba(94, 248, 231, 0.045) 1px,
      transparent 1px,
      transparent 54px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(94, 248, 231, 0.035) 0,
      rgba(94, 248, 231, 0.035) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255, 86, 197, 0.03) 0,
      rgba(255, 86, 197, 0.03) 2px,
      transparent 2px,
      transparent 120px
    );
  opacity: 0.34;
}

body::after {
  background:
    radial-gradient(circle at 50% 8%, rgba(94, 248, 231, 0.12), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(255, 86, 197, 0.14), transparent 24%),
    radial-gradient(circle at 32% 72%, rgba(255, 183, 77, 0.08), transparent 22%);
}

body.fullscreen-active {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

#site-home {
  position: relative;
  z-index: 1;
  height: 100svh;
  padding: 18px 20px;
}

.home-stage,
.home-metrics,
.home-monetize,
.home-lower {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.home-stage {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.home-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 0;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(8, 15, 30, 0.78);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  box-shadow: var(--home-shadow), var(--home-glow-cyan);
  backdrop-filter: blur(18px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.home-brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.home-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-brand-label {
  color: rgba(222, 238, 233, 0.68);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-brand-title {
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 20px rgba(94, 248, 231, 0.18),
    2px 0 0 rgba(255, 86, 197, 0.22);
}

.home-brand-subtitle {
  color: var(--home-text-muted);
  font-size: 15px;
  line-height: 1.35;
}

.home-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 0;
  border: 1px solid rgba(94, 248, 231, 0.18);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.home-nav a:hover,
.home-nav a[aria-current="page"] {
  transform: translateY(-1px);
  border-color: rgba(255, 86, 197, 0.32);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.12), rgba(255, 86, 197, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--home-glow-pink);
}

.home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(94, 248, 231, 0.18), rgba(255, 86, 197, 0.18));
  border: 1px solid rgba(255, 86, 197, 0.24);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: var(--home-glow-pink);
}

.home-stage-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(560px, 1.42fr) minmax(190px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

.stage-copy,
.stage-rail,
.game-showcase,
.home-monetize,
.home-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--home-surface);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: var(--home-shadow), var(--home-glow-cyan);
  backdrop-filter: blur(16px);
}

.stage-copy::before,
.stage-rail::before,
.game-showcase::before,
.home-monetize::before,
.home-panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -15%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 86, 197, 0.22), transparent 68%);
  pointer-events: none;
  opacity: 0.9;
}

.stage-copy::after,
.stage-rail::after,
.game-showcase::after,
.home-monetize::after,
.home-panel::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, rgba(94, 248, 231, 0), rgba(94, 248, 231, 0.88), rgba(255, 86, 197, 0.88));
  box-shadow: 0 0 16px rgba(94, 248, 231, 0.28);
}

.stage-copy,
.stage-rail,
.game-showcase,
.home-monetize,
.home-panel {
  z-index: 1;
}

.stage-copy > *,
.stage-rail > *,
.game-showcase > *,
.home-monetize > *,
.home-panel > * {
  position: relative;
  z-index: 1;
}

.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 24px 22px 22px;
}

.stage-copy-body {
  display: flex;
  flex-direction: column;
}

.stage-rail {
  display: grid;
  align-content: stretch;
  gap: 12px;
  min-height: 0;
  padding: 18px 16px 16px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(94, 248, 231, 0.14), rgba(255, 86, 197, 0.12));
  border: 1px solid rgba(94, 248, 231, 0.24);
  color: var(--home-accent);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.stage-copy h1,
.home-monetize h2,
.home-panel h2,
.game-frame-header h2 {
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  letter-spacing: 0.01em;
}

.stage-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.96;
  text-shadow:
    0 0 22px rgba(94, 248, 231, 0.16),
    2px 0 0 rgba(255, 86, 197, 0.22);
}

.home-lead {
  margin: 16px 0 0;
  color: var(--home-text);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.52;
}

.home-note {
  margin: 12px 0 0;
  color: var(--home-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 0;
  text-decoration: none;
  font-size: 17px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition:
    transform 160ms ease,
    filter 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  background: linear-gradient(135deg, #5ef8e7, #ff56c5 54%, #ffb74d);
  color: #08121d;
  box-shadow: var(--home-glow-pink);
}

.home-button-secondary {
  border: 1px solid rgba(94, 248, 231, 0.18);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.1), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--home-glow-cyan);
}

.stage-stat-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.stage-stat-card {
  padding: 16px 16px 18px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.stage-stat-label,
.home-metric-label,
.adsense-slot-label {
  color: var(--home-accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-stat-card strong,
.home-metric-card strong,
.adsense-slot-card strong,
.home-feature-card strong,
.monetize-step strong,
.home-quick-link strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.28;
}

.game-showcase {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 0;
  padding: 16px;
  align-self: stretch;
}

.game-frame-header,
.game-frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.frame-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-text-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-frame-header h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.frame-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.frame-action,
.frame-chip,
.frame-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid rgba(94, 248, 231, 0.22);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.12), rgba(255, 86, 197, 0.08)),
    rgba(255, 255, 255, 0.04);
  color: var(--home-text);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.frame-action {
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.frame-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 86, 197, 0.34);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.18), rgba(255, 86, 197, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--home-glow-pink);
}

.frame-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-frame {
  position: relative;
  min-height: 0;
  display: flex;
  padding: 12px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(4, 10, 22, 0.92);
  border: 1px solid rgba(94, 248, 231, 0.16);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(94, 248, 231, 0.08),
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(94, 248, 231, 0.08);
}

#app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(94, 248, 231, 0.08), rgba(255, 255, 255, 0)),
    rgba(5, 10, 19, 1);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow:
    inset 0 0 0 1px rgba(94, 248, 231, 0.12),
    inset 0 0 56px rgba(94, 248, 231, 0.05),
    inset 0 0 84px rgba(255, 86, 197, 0.05);
}

#app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(94, 248, 231, 0.04) 0,
      rgba(94, 248, 231, 0.04) 1px,
      transparent 1px,
      transparent 42px
    ),
    linear-gradient(135deg, rgba(94, 248, 231, 0.06), transparent 26%),
    linear-gradient(225deg, rgba(255, 86, 197, 0.05), transparent 24%);
}

#content {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(111, 252, 243, 0.05), transparent 24%),
    linear-gradient(0deg, rgba(2, 9, 13, 0.32), transparent 20%),
    url("./bg-mobile-shell.png") center/cover no-repeat;
  touch-action: none;
  overscroll-behavior: none;
}

#content canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#orientation {
  position: absolute;
  inset: 12px;
  z-index: 4;
  display: none;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(2, 5, 12, 1)),
    url("./rotate-device.png") center/180px no-repeat;
  border: 1px solid rgba(94, 248, 231, 0.16);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

#app-shell:fullscreen,
#app-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  clip-path: none;
}

#app-shell:fullscreen #orientation,
#app-shell:-webkit-full-screen #orientation {
  inset: 0;
  border-radius: 0;
}

.frame-footnote,
.home-metric-card p,
.adsense-slot-card p,
.home-panel p,
.home-feature-card p,
.monetize-step p,
.rail-card p,
.home-quick-link span {
  color: var(--home-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rail-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 14px 18px;
  min-height: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.rail-card-links {
  justify-content: space-between;
}

.rail-label {
  color: var(--home-accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.24;
}

.rail-link-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.rail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 0;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.1), rgba(255, 86, 197, 0.06)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.16);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.rail-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 86, 197, 0.3);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.14), rgba(255, 86, 197, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--home-glow-pink);
}

.rail-link span {
  font-size: 17px;
}

.rail-link small {
  color: var(--home-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.home-metric-card {
  padding: 18px 18px 20px;
  border-radius: 0;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--home-surface);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: var(--home-shadow), var(--home-glow-cyan);
  backdrop-filter: blur(12px);
}

.home-monetize {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  margin-top: 22px;
  padding: 28px;
}

.home-monetize h2,
.home-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.98;
}

.monetize-steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.monetize-step {
  padding: 16px 16px 18px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.monetize-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(247, 182, 75, 0.14);
  color: var(--home-accent-strong);
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 18px;
}

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

.adsense-slot-card {
  padding: 18px 18px 20px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 86, 197, 0.08), rgba(94, 248, 231, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 86, 197, 0.16);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.adsense-slot-shell {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 20px;
  border-radius: 0;
  border: 1px dashed rgba(255, 86, 197, 0.34);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.1), rgba(255, 183, 77, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: var(--home-text);
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: inset 0 0 32px rgba(94, 248, 231, 0.05);
}

.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
}

.home-panel {
  padding: 28px 26px 30px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-feature-card {
  padding: 18px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.home-link-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.home-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 0;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.04)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.14);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-quick-link:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.12), rgba(255, 86, 197, 0.08)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 86, 197, 0.24);
  box-shadow: var(--home-glow-pink);
}

.home-quick-link small {
  color: var(--home-accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#runtime-error {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2200;
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 143, 45, 0.32);
  background: rgba(28, 12, 8, 0.92);
  color: #fff4ec;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  max-height: 42vh;
  overflow: auto;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

#site-menu {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 1850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

#site-menu * {
  pointer-events: auto;
}

#site-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(94, 248, 231, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.06)),
    rgba(8, 18, 30, 0.88);
  color: #f4fbf9;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), var(--home-glow-cyan);
  backdrop-filter: blur(10px);
  font-size: 16px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

#site-menu-button:hover {
  border-color: rgba(255, 86, 197, 0.36);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.12), rgba(255, 86, 197, 0.1)),
    rgba(12, 20, 35, 0.92);
}

.site-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.site-menu-icon span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

#site-menu-panel {
  min-width: min(82vw, 280px);
  padding: 14px;
  border-radius: 0;
  border: 1px solid rgba(94, 248, 231, 0.16);
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.1), rgba(255, 86, 197, 0.08)),
    rgba(7, 14, 29, 0.94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), var(--home-glow-pink);
  backdrop-filter: blur(14px);
  display: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

#site-menu[data-open="true"] #site-menu-panel {
  display: block;
}

.site-menu-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-menu-label {
  color: rgba(198, 218, 213, 0.78);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-menu-title {
  color: #f4fbf9;
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 22px;
  line-height: 1;
  text-shadow:
    0 0 16px rgba(94, 248, 231, 0.18),
    2px 0 0 rgba(255, 86, 197, 0.22);
}

.site-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 0;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), rgba(255, 86, 197, 0.05)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 248, 231, 0.12);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.site-menu-link:hover {
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.12), rgba(255, 86, 197, 0.08)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 86, 197, 0.24);
}

.site-menu-link small {
  color: rgba(198, 218, 213, 0.74);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-brand-chip {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 1800;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 24, 31, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.mobile-brand-chip img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.mobile-brand-chip span {
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1280px) {
  .home-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-badge {
    justify-self: start;
  }

  .home-stage-grid {
    grid-template-columns: minmax(170px, 0.7fr) minmax(520px, 1.34fr) minmax(170px, 0.7fr);
  }

  .stage-copy,
  .stage-rail {
    padding: 20px 18px;
  }
}

@media (max-width: 1180px) {
  .home-stage-grid {
    grid-template-columns: minmax(160px, 0.62fr) minmax(480px, 1.38fr) minmax(160px, 0.62fr);
  }

  .stage-copy h1 {
    font-size: clamp(34px, 3.4vw, 50px);
  }

  .home-lead {
    font-size: 17px;
  }

  .rail-card strong,
  .stage-stat-card strong {
    font-size: 16px;
  }
}

@media (max-width: 960px) {
  body {
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(6, 20, 27, 0.94), rgba(6, 20, 27, 1)),
      url("./bg-mobile-shell.png") center/cover no-repeat;
  }

  #site-home {
    min-height: 100svh;
    padding: 0;
  }

  .home-stage {
    width: 100%;
    min-height: 100svh;
    gap: 0;
  }

  .home-topbar,
  .stage-copy,
  .stage-rail,
  .home-metrics,
  .home-monetize,
  .home-lower {
    display: none;
  }

  .home-stage-grid {
    display: block;
    min-height: 100svh;
  }

  .game-showcase {
    position: fixed;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    clip-path: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .game-showcase::before,
  .game-frame-header,
  .game-frame-footer {
    display: none;
  }

  .game-frame {
    padding: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    clip-path: none;
    background: transparent;
    box-shadow: none;
  }

  #app-shell {
    width: 100%;
    height: 100%;
    border-radius: 0;
    clip-path: none;
  }

  #content {
    background:
      linear-gradient(180deg, rgba(111, 252, 243, 0.06), transparent 20%),
      linear-gradient(0deg, rgba(2, 9, 13, 0.28), transparent 16%),
      url("./bg-mobile-shell.png") center/cover no-repeat;
  }

  #orientation {
    inset: 0;
    border-radius: 0;
    clip-path: none;
    background:
      linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(2, 5, 12, 1)),
      url("./rotate-device.png") center/180px no-repeat;
  }

  .mobile-brand-chip {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .home-metrics,
  .home-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 961px) {
  #site-menu,
  .mobile-brand-chip {
    display: none;
  }

  body {
    overflow: hidden;
  }
}
