:root {
  color-scheme: dark;
  --ink: #050608;
  --ink-soft: #0a0d12;
  --panel: rgba(14, 18, 25, 0.86);
  --panel-solid: #0e1219;
  --panel-raised: #151b25;
  --line: rgba(147, 177, 218, 0.18);
  --line-strong: rgba(117, 244, 255, 0.34);
  --text: #f6fbff;
  --muted: #a1adbd;
  --green: #6cff55;
  --green-strong: #2af57a;
  --blue: #31c8ff;
  --blue-strong: #5088ff;
  --violet: #aa69ff;
  --yellow: #ffdc61;
  --red: #ff5477;
  --shadow-green: 0 0 28px rgba(91, 255, 91, 0.23);
  --shadow-blue: 0 0 32px rgba(49, 200, 255, 0.24);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --max-width: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 2%, rgba(45, 252, 126, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 22%, rgba(43, 183, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #080a0f 0%, var(--ink) 55%, #07090d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(125, 170, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 170, 210, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

body::after {
  position: fixed;
  inset: auto -12vw -19vw auto;
  z-index: -1;
  width: 46vw;
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(108, 255, 85, 0.12);
  border-radius: 32%;
  box-shadow:
    0 0 0 54px rgba(49, 200, 255, 0.025),
    0 0 0 108px rgba(108, 255, 85, 0.018);
  transform: rotate(24deg);
}

::selection {
  color: #031006;
  background: var(--green);
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: #071009;
  background: var(--green);
  border-radius: 10px;
  font-weight: 900;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header,
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(131, 172, 214, 0.13);
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
}

.nav,
.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark,
.logo-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(108, 255, 85, 0.64);
  background:
    linear-gradient(135deg, rgba(108, 255, 85, 0.2), rgba(49, 200, 255, 0.1)),
    #0b1016;
  box-shadow: var(--shadow-green);
  clip-path: polygon(50% 0, 96% 26%, 96% 74%, 50% 100%, 4% 74%, 4% 26%);
}

.brand-mark::before,
.logo-mark::before {
  width: 17px;
  height: 24px;
  content: "";
  background: linear-gradient(160deg, var(--green), var(--blue));
  clip-path: polygon(55% 0, 100% 0, 67% 38%, 92% 38%, 23% 100%, 43% 55%, 12% 55%);
  filter: drop-shadow(0 0 5px rgba(108, 255, 85, 0.78));
}

.brand-text strong,
.logo-text strong {
  color: var(--green);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 10px;
  transition: color 160ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-status,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(108, 255, 85, 0.24);
  color: #c7ffbd;
  background: rgba(108, 255, 85, 0.07);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-status::before,
.live-pill::before {
  width: 7px;
  aspect-ratio: 1;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
  animation: status-pulse 1.8s ease-in-out infinite;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(790px, calc(100svh - var(--header-height)));
  align-items: center;
  padding-block: 80px 70px;
}

.hero-grid,
.hero-inner {
  display: grid;
  align-items: center;
  gap: 52px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before,
.section-kicker::before {
  width: 25px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--green), transparent);
  box-shadow: 0 0 10px rgba(108, 255, 85, 0.7);
}

.hero h1,
.hero-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 13vw, 7.5rem);
  font-weight: 1000;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero h1 span,
.hero-title span,
.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--green) 5%, #9eff75 28%, var(--blue) 66%, #68a4ff 94%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(66, 233, 165, 0.18));
}

.hero-description,
.hero p:not(.eyebrow):not(.kicker) {
  max-width: 650px;
  margin: 28px 0 0;
  color: #b3bdca;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.78;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button,
.btn,
.play-button,
.copy-button,
.copy-btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button::before,
.btn::before,
.play-button::before,
.copy-button::before,
.copy-btn::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 72%);
  transform: translateX(-120%);
  transition: transform 430ms ease;
}

.button:hover::before,
.btn:hover::before,
.play-button:hover::before,
.copy-button:hover::before,
.copy-btn:hover::before {
  transform: translateX(120%);
}

.button:hover,
.btn:hover,
.play-button:hover,
.copy-button:hover,
.copy-btn:hover {
  transform: translateY(-2px);
}

.button-primary,
.btn-primary,
.play-button {
  color: #041009;
  background: linear-gradient(135deg, var(--green), #98ff61);
  border-color: rgba(173, 255, 151, 0.9);
  box-shadow: 0 10px 32px rgba(86, 255, 86, 0.2);
}

.button-primary:hover,
.btn-primary:hover,
.play-button:hover {
  box-shadow: 0 14px 44px rgba(86, 255, 86, 0.34);
}

.button-secondary,
.btn-secondary {
  color: #d9f6ff;
  background: rgba(30, 188, 255, 0.08);
  border-color: rgba(49, 200, 255, 0.4);
  box-shadow: inset 0 0 24px rgba(49, 200, 255, 0.05);
}

.button-secondary:hover,
.btn-secondary:hover {
  border-color: rgba(49, 200, 255, 0.78);
  box-shadow: var(--shadow-blue);
}

.hero-art,
.hero-visual,
.portal-preview {
  position: relative;
  width: min(100%, 520px);
  min-height: 380px;
  margin-inline: auto;
  isolation: isolate;
}

.hero-art::before,
.hero-visual::before,
.portal-preview::before {
  position: absolute;
  inset: 6% 7%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(49, 200, 255, 0.22);
  border-radius: 29% 49% 32% 44%;
  box-shadow:
    inset 0 0 70px rgba(49, 200, 255, 0.07),
    0 0 80px rgba(49, 200, 255, 0.08);
  transform: rotate(-7deg);
}

.forge-frame,
.preview-card {
  position: absolute;
  inset: 13% 5% 7% 8%;
  overflow: hidden;
  border: 1px solid rgba(135, 205, 255, 0.25);
  background:
    linear-gradient(150deg, rgba(27, 37, 51, 0.9), rgba(8, 11, 16, 0.94)),
    var(--panel-solid);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    inset 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(3deg);
}

.forge-frame::before,
.preview-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 49%, rgba(117, 244, 255, 0.08) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(108, 255, 85, 0.08) 50%, transparent 51%);
  background-size: 42px 42px;
}

.forge-core,
.preview-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124px;
  aspect-ratio: 1;
  border: 2px solid rgba(108, 255, 85, 0.75);
  background: rgba(108, 255, 85, 0.07);
  box-shadow:
    0 0 42px rgba(108, 255, 85, 0.25),
    inset 0 0 30px rgba(49, 200, 255, 0.15);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: core-float 4.8s ease-in-out infinite;
}

.forge-core::before,
.preview-core::before {
  position: absolute;
  inset: 22%;
  content: "";
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 32px rgba(90, 236, 169, 0.55);
}

.floating-chip,
.preview-chip {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(49, 200, 255, 0.32);
  color: #dff9ff;
  background: rgba(7, 12, 19, 0.88);
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-chip:nth-child(2),
.preview-chip:nth-child(2) {
  top: 8%;
  right: 3%;
}

.floating-chip:nth-child(3),
.preview-chip:nth-child(3) {
  bottom: 8%;
  left: 0;
  border-color: rgba(108, 255, 85, 0.35);
}

.stats,
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.stat {
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 21, 0.65);
  border-radius: var(--radius-sm);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding-block: 80px;
}

.section + .section {
  border-top: 1px solid rgba(135, 177, 218, 0.08);
}

.section-heading,
.section-header {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 4.7rem);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-transform: uppercase;
}

.section-heading p,
.section-header p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.game-grid,
.games-grid {
  display: grid;
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(21, 28, 38, 0.92), rgba(9, 12, 17, 0.96)),
    var(--panel-solid);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.game-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.game-card:hover,
.game-card:focus-within {
  border-color: rgba(49, 200, 255, 0.42);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(49, 200, 255, 0.08);
  transform: translateY(-5px);
}

.game-visual,
.game-cover,
.screenshot {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 28%, rgba(108, 255, 85, 0.2), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(49, 200, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #111822, #06080c);
}

.game-visual::before,
.game-cover::before,
.screenshot::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(117, 244, 255, 0.11) 48%, rgba(117, 244, 255, 0.11) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(108, 255, 85, 0.09) 48%, rgba(108, 255, 85, 0.09) 52%, transparent 53%);
  background-size: 54px 54px;
}

.game-visual[data-theme="race"],
.game-cover.race {
  background:
    radial-gradient(circle at 52% 80%, rgba(255, 214, 75, 0.2), transparent 25%),
    radial-gradient(circle at 75% 24%, rgba(49, 200, 255, 0.26), transparent 34%),
    linear-gradient(145deg, #142437, #080b10 72%);
}

.game-visual[data-theme="future"],
.game-cover.future {
  background:
    radial-gradient(circle at 50% 50%, rgba(170, 105, 255, 0.18), transparent 28%),
    repeating-linear-gradient(45deg, rgba(170, 105, 255, 0.04) 0 12px, transparent 12px 24px),
    #090a10;
}

.cover-emblem,
.game-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 96px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(108, 255, 85, 0.7);
  color: var(--text);
  background: rgba(5, 9, 13, 0.78);
  box-shadow:
    0 0 28px rgba(108, 255, 85, 0.22),
    inset 0 0 20px rgba(49, 200, 255, 0.1);
  transform: rotate(45deg);
}

.cover-emblem > *,
.game-icon > * {
  transform: rotate(-45deg);
}

.game-badge,
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(108, 255, 85, 0.35);
  color: var(--green);
  background: rgba(5, 10, 12, 0.8);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.game-content,
.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.game-content h3,
.game-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: uppercase;
}

.game-content p,
.game-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.67;
}

.game-meta,
.tag-list,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
}

.game-meta span,
.tag,
.tags span {
  padding: 6px 8px;
  border: 1px solid rgba(136, 176, 215, 0.16);
  color: #bec9d6;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.game-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.game-actions .button,
.game-actions .btn,
.card-actions .button,
.card-actions .btn {
  flex: 1 1 145px;
}

.game-card.is-coming,
.game-card.coming-soon {
  border-style: dashed;
}

.game-card.is-coming .game-visual,
.game-card.coming-soon .game-cover {
  filter: saturate(0.55);
}

.level-grid,
.levels-grid {
  display: grid;
  gap: 14px;
}

.level-card {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(20, 26, 36, 0.88), rgba(9, 12, 17, 0.94));
  border-radius: var(--radius-sm);
  box-shadow: inset 3px 0 rgba(49, 200, 255, 0.6);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.level-card:hover,
.level-card:focus-within {
  border-color: rgba(49, 200, 255, 0.42);
  box-shadow:
    inset 3px 0 var(--green),
    0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.level-preview,
.level-thumb {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(141, 184, 222, 0.16);
  background:
    linear-gradient(150deg, rgba(49, 200, 255, 0.08), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(108, 255, 85, 0.05) 24px 25px),
    #080c12;
  border-radius: 10px;
}

.level-preview::before,
.level-thumb::before {
  position: absolute;
  right: 0;
  bottom: 28%;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  box-shadow: 0 0 14px rgba(49, 200, 255, 0.6);
}

.level-preview::after,
.level-thumb::after {
  position: absolute;
  right: 14%;
  bottom: calc(28% + 2px);
  width: 30px;
  height: 34px;
  content: "";
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 8px rgba(255, 84, 119, 0.55));
}

.level-title-row,
.level-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.level-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-transform: uppercase;
}

.level-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.difficulty,
.difficulty-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid currentColor;
  color: var(--blue);
  background: rgba(49, 200, 255, 0.07);
  border-radius: 7px;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.difficulty.easy,
.difficulty-badge.easy {
  color: var(--green);
  background: rgba(108, 255, 85, 0.07);
}

.difficulty.hard,
.difficulty-badge.hard {
  color: var(--yellow);
  background: rgba(255, 220, 97, 0.07);
}

.difficulty.demon,
.difficulty-badge.demon,
.difficulty.extreme,
.difficulty-badge.extreme {
  color: var(--red);
  background: rgba(255, 84, 119, 0.08);
  box-shadow: 0 0 18px rgba(255, 84, 119, 0.08);
}

.level-code,
.code-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 11px;
  border: 1px solid rgba(142, 185, 225, 0.14);
  background: rgba(4, 7, 10, 0.6);
  border-radius: 10px;
}

.level-code code,
.code-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #d7e2ed;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button,
.copy-btn {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #06100a;
  background: linear-gradient(135deg, var(--green), #9cff68);
  border-color: rgba(108, 255, 85, 0.58);
  border-radius: 8px;
  font-size: 0.58rem;
}

.copy-button.is-copied,
.copy-btn.copied {
  color: #06121a;
  background: var(--blue);
  border-color: var(--blue);
}

.catalog-note,
.info-panel,
.portal-note {
  display: grid;
  gap: 13px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(49, 200, 255, 0.22);
  background: linear-gradient(135deg, rgba(49, 200, 255, 0.07), rgba(108, 255, 85, 0.035));
  border-radius: var(--radius);
}

.catalog-note strong,
.info-panel strong,
.portal-note strong {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-note p,
.info-panel p,
.portal-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer,
.footer {
  position: relative;
  padding-block: 42px;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 9, 0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-copy,
.copyright {
  margin: 0;
  color: #768292;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--green);
}

.toast,
#copy-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(108, 255, 85, 0.42);
  color: #e8ffe3;
  background: rgba(7, 15, 11, 0.94);
  border-radius: 11px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.46),
    var(--shadow-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible,
.toast.show,
#copy-toast.is-visible,
#copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes status-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes core-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(0.96); }
  50% { transform: translate(-50%, calc(-50% - 14px)) rotate(135deg) scale(1.04); }
}

@media (min-width: 640px) {
  .container,
  .shell {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .stats,
  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }

  .hero-grid,
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  }

  .hero-art,
  .hero-visual,
  .portal-preview {
    min-height: 520px;
  }

  .section-heading,
  .section-header {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: end;
    justify-content: space-between;
  }

  .section-heading p,
  .section-header p {
    justify-self: end;
  }

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

  .game-card {
    grid-column: span 6;
  }

  .game-card.featured,
  .game-card.is-featured {
    grid-column: span 7;
  }

  .game-card.featured + .game-card,
  .game-card.is-featured + .game-card {
    grid-column: span 5;
  }
}

@media (min-width: 1080px) {
  .level-grid,
  .levels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding-block: 108px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 68px;
  }

  .brand,
  .logo {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .brand-mark,
  .logo-mark {
    width: 36px;
  }

  .nav-status,
  .live-pill {
    padding: 7px 9px;
    font-size: 0;
  }

  .nav-status::after,
  .live-pill::after {
    content: "LIVE";
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    padding-block: 64px 48px;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.85rem, 17vw, 4.8rem);
  }

  .hero-art,
  .hero-visual,
  .portal-preview {
    min-height: 330px;
  }

  .hero-actions .button,
  .hero-actions .btn,
  .cta-row .button,
  .cta-row .btn {
    width: 100%;
  }

  .game-content,
  .game-body {
    padding: 19px;
  }

  .level-code,
  .code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button,
  .copy-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(209, 232, 255, 0.45);
    --muted: #c4ceda;
  }

  .game-card,
  .level-card,
  .stat {
    border-width: 2px;
  }
}

/* Index-specific composition ------------------------------------------------ */
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(49, 200, 255, 0.05) 50%, transparent 50.2%) 0 0 / 88px 88px,
    linear-gradient(transparent 0 49.8%, rgba(108, 255, 85, 0.045) 50%, transparent 50.2%) 0 0 / 88px 88px;
}

.page-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin-inline: auto;
  border-inline: 1px solid rgba(130, 177, 219, 0.07);
  background: rgba(4, 7, 10, 0.18);
}

.page-shell > main,
.page-shell > .site-header,
.page-shell > .site-footer {
  padding-inline: clamp(18px, 4.6vw, 72px);
}

.page-shell .site-header {
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 0.98;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.9rem;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.32em;
}

.brand-mark i {
  position: absolute;
  width: 4px;
  aspect-ratio: 1;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(108, 255, 85, 0.9);
}

.brand-mark i:nth-child(1) { transform: translate(-12px, -9px); }
.brand-mark i:nth-child(2) { background: var(--blue); transform: translate(13px, -2px); }
.brand-mark i:nth-child(3) { transform: translate(-7px, 13px); }

.main-nav {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-block: 12px;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--text); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.music-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 217, 255, 0.26);
  color: var(--muted);
  background: rgba(0, 217, 255, 0.045);
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.music-toggle strong {
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(0, 217, 255, 0.62);
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.13);
  transform: translateY(-2px);
}

.music-toggle[aria-pressed="true"] {
  color: var(--green);
  border-color: rgba(108, 255, 85, 0.48);
  background: rgba(108, 255, 85, 0.07);
  box-shadow: 0 0 22px rgba(108, 255, 85, 0.1);
}

.music-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.music-bars {
  display: inline-flex;
  width: 18px;
  height: 16px;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.music-bars i {
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
}

.music-toggle[aria-pressed="true"] .music-bars i {
  animation: music-meter 1.05s ease-in-out infinite;
}

.music-toggle[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: -0.62s; }
.music-toggle[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: -0.28s; }

.header-subscribe {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 9px 8px 14px;
  border: 1px solid rgba(108, 255, 85, 0.58);
  color: #061009;
  background: linear-gradient(135deg, var(--green), #a2ff72);
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(108, 255, 85, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-subscribe:hover,
.header-subscribe:focus-visible {
  color: #071008;
  background: linear-gradient(135deg, #a2ff72, var(--green));
  box-shadow: 0 0 30px rgba(108, 255, 85, 0.34);
  transform: translateY(-2px);
}

.header-subscribe > span { white-space: nowrap; }

.header-subscribe > b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding-inline: 5px;
  color: #dff8ff;
  background: rgba(4, 13, 9, 0.78);
  border-radius: 7px;
  font-size: 0.58rem;
  letter-spacing: 0;
}

.header-subscribe.is-active {
  color: #06141a;
  background: linear-gradient(135deg, var(--blue), #8defff);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.header-subscribe:disabled { cursor: wait; opacity: 0.65; transform: none; }

.page-shell .hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.hero h1 {
  display: grid;
  gap: 8px;
}

.hero h1 > span,
.hero h1 > em {
  display: block;
}

.hero h1 > em {
  color: transparent;
  background: linear-gradient(95deg, #ffffff 2%, #b7c4d2 54%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

.hero .eyebrow > span {
  width: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.hero .eyebrow::before { display: none; }

.hero-lead {
  max-width: 680px;
  margin-top: 26px;
  color: #b7c2cf;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 620;
  letter-spacing: 0.015em;
  line-height: 1.75;
}

.button-ghost {
  color: #d9f6ff;
  background: rgba(49, 200, 255, 0.06);
  border-color: rgba(49, 200, 255, 0.36);
}

.button-ghost:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin: 40px 0 0;
  padding: 0;
  border-block: 1px solid var(--line);
}

.hero-stats div {
  min-width: 0;
  padding: 18px 10px 18px 0;
}

.hero-stats div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--text);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 1000;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-stage {
  position: relative;
  width: min(100%, 540px);
  min-height: 430px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(110, 194, 242, 0.2);
  background:
    radial-gradient(circle at 50% 46%, rgba(108, 255, 85, 0.12), transparent 22%),
    radial-gradient(circle at 50% 54%, rgba(49, 200, 255, 0.13), transparent 43%),
    linear-gradient(145deg, rgba(21, 29, 39, 0.88), rgba(5, 8, 12, 0.96));
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.35;
  background:
    linear-gradient(rgba(102, 183, 225, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 183, 225, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.stage-label {
  position: absolute;
  z-index: 4;
  padding: 7px 9px;
  border: 1px solid rgba(136, 177, 214, 0.18);
  color: #adbac9;
  background: rgba(4, 8, 12, 0.68);
  border-radius: 7px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-label-top { top: 18px; left: 18px; }
.stage-label-bottom { right: 18px; bottom: 18px; }

.stage-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 200, 255, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: stage-spin 13s linear infinite;
}

.stage-orbit::before {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 11px;
  aspect-ratio: 1;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--blue);
}

.stage-orbit-b {
  width: 220px;
  border-color: rgba(108, 255, 85, 0.28);
  animation-direction: reverse;
  animation-duration: 8s;
  transform: translate(-50%, -50%) rotate(48deg);
}

.stage-orbit-b::before { background: var(--green); box-shadow: 0 0 18px var(--green); }

.stage-core {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(108, 255, 85, 0.52);
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle, rgba(49, 200, 255, 0.22), rgba(5, 13, 18, 0.96) 68%);
  border-radius: 50%;
  box-shadow: 0 0 58px rgba(108, 255, 85, 0.24), inset 0 0 38px rgba(49, 200, 255, 0.19);
  transform: translate(-50%, -50%);
  animation: stage-core 3.3s ease-in-out infinite;
}

.stage-core::before,
.stage-core::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.stage-core::before {
  inset: 12px;
  border: 1px dashed rgba(49, 200, 255, 0.48);
  animation: sigil-spin 10s linear infinite;
}

.stage-core::after {
  inset: 27px;
  border: 3px solid transparent;
  border-top-color: var(--green);
  border-right-color: rgba(49, 200, 255, 0.8);
  box-shadow: 0 0 12px rgba(108, 255, 85, 0.18);
  animation: sigil-spin 5.5s linear infinite reverse;
}

.core-rift {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 76px;
  background: linear-gradient(155deg, var(--green), var(--blue));
  clip-path: polygon(61% 0, 100% 0, 65% 39%, 92% 39%, 16% 100%, 39% 57%, 7% 57%);
  filter: drop-shadow(0 0 8px rgba(108, 255, 85, 0.8));
}

.core-spark {
  position: absolute;
  z-index: 3;
  top: 25px;
  right: 28px;
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 0 10px var(--blue);
  animation: spark-pulse 2s ease-in-out infinite;
}

.stage-trail {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  filter: drop-shadow(0 0 6px var(--blue));
  animation: trail-run 2.8s linear infinite;
}

.trail-one { top: 34%; left: -15%; width: 56%; }
.trail-two { right: -20%; bottom: 33%; width: 63%; animation-delay: -1.2s; }

.stage-spectrum {
  position: absolute;
  right: 7%;
  bottom: 72px;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(49, 200, 255, 0.75), var(--green), transparent);
  box-shadow: 0 0 20px rgba(49, 200, 255, 0.42);
}

.stage-spectrum::before {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 20px;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(49, 200, 255, 0.36) 18px 20px);
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.stage-world {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(49, 200, 255, 0.46);
  color: #d8f7ff;
  background: radial-gradient(circle, rgba(49, 200, 255, 0.24), rgba(5, 12, 17, 0.92) 70%);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(49, 200, 255, 0.17);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  animation: world-float 4.5s ease-in-out infinite;
}

.world-one { top: 24%; right: 12%; }
.world-two { bottom: 23%; left: 13%; border-color: rgba(108, 255, 85, 0.48); animation-delay: -1.4s; }
.world-three { right: 18%; bottom: 18%; width: 34px; animation-delay: -2.8s; }

.ticker {
  margin-inline: calc(clamp(18px, 4.6vw, 72px) * -1);
  overflow: hidden;
  border-block: 1px solid rgba(108, 255, 85, 0.24);
  background: linear-gradient(90deg, rgba(108, 255, 85, 0.06), rgba(49, 200, 255, 0.07));
  transform: rotate(-1deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
  color: #d9f4e2;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: ticker-scroll 22s linear infinite;
}

.ticker-track i { color: var(--green); font-style: normal; }

.game-card-featured { grid-column: auto; }
.game-card-coming { border-style: dashed; }

.game-shot {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.shot-shatterpulse {
  background:
    radial-gradient(circle at 30% 30%, rgba(108, 255, 85, 0.2), transparent 26%),
    radial-gradient(circle at 78% 68%, rgba(49, 200, 255, 0.19), transparent 35%),
    linear-gradient(145deg, #121a24, #06080c 70%);
}

.shot-apex {
  background: linear-gradient(#103a57 0 48%, #ffb15c 49% 51%, #202e35 52% 100%);
}

.shot-unknown {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(170, 105, 255, 0.04) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 50%, rgba(170, 105, 255, 0.15), transparent 33%),
    #090a10;
}

.game-card-blackvector {
  border-color: rgba(71, 211, 194, 0.32);
  background:
    linear-gradient(145deg, rgba(18, 33, 31, 0.96), rgba(8, 12, 12, 0.98)),
    var(--panel-solid);
}

.game-card-blackvector:hover,
.game-card-blackvector:focus-within {
  border-color: rgba(71, 225, 206, 0.58);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(71, 225, 206, 0.1);
}

.shot-blackvector {
  background:
    linear-gradient(90deg, rgba(4, 10, 10, 0.14), rgba(4, 10, 10, 0.02)),
    url("./assets/fracture-front-cover.avif") center 48% / cover no-repeat,
    #111b18;
}

.shot-blackvector::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(74, 225, 206, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(74, 225, 206, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.shot-blackvector::after {
  position: absolute;
  z-index: 7;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 7, 6, 0.7), transparent 48%);
  box-shadow: inset 0 0 70px rgba(2, 7, 6, 0.4);
}

.game-link-fracture {
  color: #7fffe7;
  border-color: rgba(74, 225, 206, 0.46);
  background: rgba(74, 225, 206, 0.075);
}

.game-link-fracture:hover {
  color: #031311;
  background: #7fffe7;
  box-shadow: 0 0 28px rgba(74, 225, 206, 0.35);
}

.roadmap-list .is-fracture > span,
.roadmap-list .is-fracture > b { color: #7fffe7; }

.game-card-gluhoy-dom {
  border-color: rgba(255, 183, 93, 0.26);
  background:
    linear-gradient(145deg, rgba(28, 25, 20, 0.97), rgba(8, 10, 10, 0.99)),
    var(--panel-solid);
}

.game-card-gluhoy-dom:hover,
.game-card-gluhoy-dom:focus-within {
  border-color: rgba(255, 190, 108, 0.5);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(174, 116, 55, 0.1);
}

.shot-gluhoy-dom {
  background:
    linear-gradient(90deg, rgba(3, 6, 6, 0.08), rgba(3, 6, 6, 0.02)),
    url("./assets/silent-house-cover.jpg") center 42% / cover no-repeat,
    #0b100f;
}

.shot-gluhoy-dom::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3, 6, 6, 0.78), transparent 52%),
    radial-gradient(circle at 18% 72%, rgba(204, 227, 220, 0.18), transparent 28%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.46);
}

.shot-gluhoy-dom::after {
  position: absolute;
  z-index: 4;
  inset: -20% -12%;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(105deg, transparent 0 21px, rgba(221, 237, 232, 0.34) 22px 23px, transparent 24px 43px);
  animation: horror-rain 8s linear infinite;
}

.game-card-gluhoy-dom .shot-status,
.game-card-gluhoy-dom .shot-number,
.game-card-gluhoy-dom .shot-caption { z-index: 8; }

.roadmap-list .is-horror > span,
.roadmap-list .is-horror > b { color: #ffc767; }

.game-link-silent-house {
  color: #ffc767;
  border-color: rgba(255, 199, 103, 0.46);
  background: rgba(255, 199, 103, 0.075);
}

.game-link-silent-house:hover,
.game-link-silent-house:focus-visible {
  color: #201209;
  background: #ffc767;
  box-shadow: 0 0 28px rgba(255, 199, 103, 0.28);
}

.shot-status.shot-status-development {
  color: #ffc767;
  border-color: rgba(255, 199, 103, 0.4);
  background: rgba(13, 16, 13, 0.82);
}

.vector-scanlines {
  position: absolute;
  z-index: 6;
  inset: 0;
  opacity: 0.19;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.22) 3px 4px);
}

.vector-sun {
  position: absolute;
  z-index: 0;
  top: 37px;
  right: 22%;
  width: 76px;
  aspect-ratio: 1;
  background: rgba(255, 209, 129, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 56px rgba(255, 203, 105, 0.38);
}

.vector-tree-line {
  position: absolute;
  right: -3%;
  left: -3%;
  background: #1b2a21;
  clip-path: polygon(0 100%, 0 56%, 4% 56%, 6% 13%, 8% 58%, 13% 58%, 16% 24%, 18% 59%, 23% 59%, 26% 5%, 29% 60%, 35% 60%, 37% 29%, 40% 60%, 45% 60%, 48% 15%, 51% 60%, 57% 60%, 60% 33%, 63% 60%, 68% 60%, 72% 7%, 76% 59%, 82% 59%, 85% 23%, 88% 59%, 94% 59%, 97% 17%, 100% 59%, 100% 100%);
}

.vector-tree-line-far {
  z-index: 1;
  bottom: 36%;
  height: 40%;
  opacity: 0.62;
  filter: blur(0.5px);
  transform: scaleX(-1);
}

.vector-tree-line-near {
  z-index: 2;
  bottom: 19%;
  height: 49%;
  background: #101a14;
}

.vector-ground {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 31%;
  background:
    linear-gradient(162deg, transparent 0 43%, rgba(117, 144, 101, 0.17) 44% 45%, transparent 46%),
    repeating-linear-gradient(101deg, rgba(255, 255, 255, 0.015) 0 17px, rgba(0, 0, 0, 0.04) 17px 25px),
    #20271f;
  clip-path: polygon(0 23%, 19% 14%, 41% 27%, 64% 7%, 82% 18%, 100% 3%, 100% 100%, 0 100%);
}

.vector-tank {
  position: absolute;
  z-index: 5;
  bottom: 14%;
  left: 50%;
  width: 138px;
  height: 49px;
  background: linear-gradient(155deg, #3f4b3c, #182018 68%);
  border: 1px solid rgba(203, 222, 191, 0.24);
  border-radius: 8px 15px 9px 9px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.vector-tank::before {
  position: absolute;
  top: -27px;
  left: 35px;
  width: 68px;
  height: 30px;
  content: "";
  background: linear-gradient(145deg, #4a5746, #202820);
  border: 1px solid rgba(208, 221, 198, 0.2);
  border-radius: 13px 18px 4px 5px;
}

.vector-tank::after {
  position: absolute;
  top: -19px;
  left: 92px;
  width: 82px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #384238, #111713);
  border-radius: 0 5px 5px 0;
  box-shadow: 25px 0 6px rgba(0, 0, 0, 0.22);
  transform: rotate(-5deg);
  transform-origin: left center;
}

.vector-tank i {
  position: absolute;
  bottom: -8px;
  width: 26px;
  aspect-ratio: 1;
  background: #0b0e0c;
  border: 5px solid #30372e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #68705e;
}

.vector-tank i:nth-child(1) { left: 10px; }
.vector-tank i:nth-child(2) { left: 42px; }
.vector-tank i:nth-child(3) { right: 42px; }
.vector-tank i:nth-child(4) { right: 10px; }

.vector-soldier {
  position: absolute;
  z-index: 5;
  bottom: 17%;
  width: 11px;
  height: 34px;
  background: #0c110e;
  border-radius: 5px 5px 2px 2px;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.5));
}

.vector-soldier::before {
  position: absolute;
  top: -8px;
  left: 1px;
  width: 9px;
  aspect-ratio: 1;
  content: "";
  background: #141b16;
  border-radius: 50%;
}

.vector-soldier::after {
  position: absolute;
  top: 10px;
  left: 7px;
  width: 24px;
  height: 3px;
  content: "";
  background: #080b09;
  border-radius: 3px;
  transform: rotate(-8deg);
  transform-origin: left center;
}

.vector-soldier-a { left: 17%; }
.vector-soldier-b { right: 17%; transform: scaleX(-1); }

.vector-crosshair {
  position: absolute;
  z-index: 6;
  top: 45%;
  left: 50%;
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid rgba(104, 237, 218, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(69, 221, 201, 0.08);
  transform: translate(-50%, -50%);
}

.vector-crosshair::before,
.vector-crosshair::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: rgba(124, 244, 225, 0.7);
  transform: translate(-50%, -50%);
}

.vector-crosshair::before { width: 118px; height: 1px; }
.vector-crosshair::after { width: 1px; height: 118px; }
.vector-crosshair i { position: absolute; top: 50%; left: 50%; width: 5px; aspect-ratio: 1; background: #bfffe9; border-radius: 50%; box-shadow: 0 0 10px #73ead1; transform: translate(-50%, -50%); }

.shot-status,
.shot-number,
.shot-caption { position: absolute; z-index: 5; }

.shot-status {
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(108, 255, 85, 0.34);
  color: var(--green);
  background: rgba(5, 9, 12, 0.74);
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.shot-status i { width: 6px; aspect-ratio: 1; background: currentColor; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.shot-status-blue { color: var(--blue); border-color: rgba(49, 200, 255, 0.38); }
.shot-status-muted { color: #a8a1b7; border-color: rgba(170, 105, 255, 0.22); }
.shot-number { top: 8px; right: 14px; color: rgba(255, 255, 255, 0.08); font-size: 4.5rem; font-weight: 1000; line-height: 1; }
.shot-caption { right: 15px; bottom: 13px; color: #d6e0eb; font-size: 0.54rem; font-weight: 900; letter-spacing: 0.1em; }

.shot-horizon {
  position: absolute;
  right: 0;
  bottom: 30%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  box-shadow: 0 0 18px rgba(49, 200, 255, 0.6);
}

.shot-player {
  position: absolute;
  bottom: calc(30% + 4px);
  left: 24%;
  width: 45px;
  aspect-ratio: 1;
  border: 3px solid var(--green);
  background: #0b1418;
  box-shadow: 0 0 22px rgba(108, 255, 85, 0.42);
  transform: rotate(12deg);
}

.shot-player i { position: absolute; top: 9px; width: 7px; aspect-ratio: 1; background: #fff; border-radius: 1px; }
.shot-player i:first-child { left: 8px; }
.shot-player i:last-child { right: 8px; }

.shot-saw {
  position: absolute;
  bottom: 29%;
  width: 54px;
  aspect-ratio: 1;
  background: repeating-conic-gradient(var(--red) 0 12deg, transparent 12deg 24deg);
  border-radius: 50%;
  filter: drop-shadow(0 0 7px rgba(255, 84, 119, 0.55));
  animation: stage-spin 4s linear infinite;
}

.shot-saw::after { position: absolute; inset: 32%; content: ""; background: #111923; border: 2px solid #ff9bb0; border-radius: 50%; }
.shot-saw-a { right: 30%; }
.shot-saw-b { right: 14%; width: 40px; animation-direction: reverse; }
.shot-spikes { position: absolute; bottom: 30%; left: 46%; width: 94px; height: 38px; background: repeating-linear-gradient(90deg, var(--violet) 0 20px, transparent 20px 29px); clip-path: polygon(0 100%, 12% 0, 25% 100%, 38% 0, 51% 100%, 64% 0, 77% 100%, 90% 0, 100% 100%); }

.coast-sun { position: absolute; top: 29px; right: 22%; width: 72px; aspect-ratio: 1; background: #ffd86a; border-radius: 50%; box-shadow: 0 0 38px rgba(255, 216, 106, 0.55); }
.coast-mountain { position: absolute; bottom: 47%; width: 68%; height: 40%; background: #1b5469; clip-path: polygon(0 100%, 20% 42%, 36% 70%, 55% 18%, 74% 64%, 100% 36%, 100% 100%); }
.coast-mountain-a { left: -6%; opacity: 0.85; }
.coast-mountain-b { right: -12%; background: #163d53; transform: scaleX(-1); }
.coast-road { position: absolute; right: 10%; bottom: -2%; left: 10%; height: 56%; background: #303b40; clip-path: polygon(39% 0, 61% 0, 100% 100%, 0 100%); }
.coast-road::after { position: absolute; top: 10%; bottom: 0; left: 49%; width: 2%; content: ""; background: repeating-linear-gradient(to bottom, #fff 0 14px, transparent 14px 27px); }
.coast-car { position: absolute; bottom: 12%; left: 50%; z-index: 2; width: 72px; height: 36px; background: linear-gradient(135deg, #28d9ff, #386dff); border-radius: 18px 18px 7px 7px; box-shadow: 0 0 24px rgba(49, 200, 255, 0.45); transform: translateX(-50%); }
.coast-car::before { position: absolute; top: -13px; left: 17px; width: 38px; height: 20px; content: ""; background: #14384b; border-radius: 12px 12px 0 0; }
.coast-car i { position: absolute; bottom: -6px; width: 14px; aspect-ratio: 1; background: #05070a; border: 3px solid #83919b; border-radius: 50%; }
.coast-car i:first-child { left: 10px; }
.coast-car i:last-child { right: 10px; }
.unknown-glyph { color: rgba(205, 174, 255, 0.5); font-size: 7rem; font-weight: 1000; filter: drop-shadow(0 0 30px rgba(170, 105, 255, 0.25)); }

.game-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.game-info .game-meta { margin: 0 0 16px; color: var(--green); }
.game-info .game-meta span { color: inherit; }
.shot-apex + .game-info .game-meta { color: var(--blue); }
.shot-blackvector + .game-info .game-meta { color: #ffc767; }
.game-info h3 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.4rem); font-weight: 1000; letter-spacing: -0.045em; line-height: 0.95; text-transform: uppercase; }
.game-info > p { margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag-row span { padding: 6px 8px; border: 1px solid rgba(136, 176, 215, 0.16); color: #bec9d6; background: rgba(255, 255, 255, 0.025); border-radius: 8px; font-size: 0.56rem; font-weight: 850; letter-spacing: 0.08em; }

.game-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid rgba(108, 255, 85, 0.42);
  color: var(--green);
  background: rgba(108, 255, 85, 0.06);
  border-radius: 11px;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.game-link:hover { color: #051008; background: var(--green); box-shadow: var(--shadow-green); transform: translateY(-2px); }
.game-link-blue { color: var(--blue); border-color: rgba(49, 200, 255, 0.4); background: rgba(49, 200, 255, 0.06); }
.game-link-blue:hover { color: #051018; background: var(--blue); box-shadow: var(--shadow-blue); }
.game-link-disabled { color: #777f8a; border-color: rgba(151, 159, 170, 0.16); background: rgba(255, 255, 255, 0.02); cursor: not-allowed; }
.game-link-disabled:hover,
.game-link-disabled:focus-visible {
  color: #777f8a;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(151, 159, 170, 0.16);
  box-shadow: none;
  transform: none;
}

button.game-link {
  width: 100%;
  font: inherit;
  text-align: left;
}

.development-notice {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 199, 103, 0.2);
  background: rgba(255, 184, 70, 0.045);
  border-radius: 10px;
}

.development-notice > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffc767;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.development-notice > span i {
  width: 7px;
  aspect-ratio: 1;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  animation: spark-pulse 2.2s ease-in-out infinite;
}

.development-notice > p {
  margin: 0;
  color: #8d998f;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  line-height: 1.55;
}

.blackvector-lock:disabled {
  opacity: 1;
}

.level-card { padding: 0; }
.level-card[data-accent="green"] { box-shadow: inset 3px 0 var(--green); }
.level-card[data-accent="blue"] { box-shadow: inset 3px 0 var(--blue); }
.level-card[data-accent="violet"] { box-shadow: inset 3px 0 var(--violet); }
.level-card .level-preview { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

.level-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.level-body > code { display: block; overflow: hidden; margin-top: 16px; padding: 10px; color: #cad7e4; background: rgba(3, 6, 9, 0.62); border: 1px solid rgba(137, 180, 220, 0.13); border-radius: 8px; font-size: 0.63rem; text-overflow: ellipsis; white-space: nowrap; }
.level-body .copy-button { width: 100%; margin-top: 8px; }

.difficulty-fury { color: var(--red); background: rgba(255, 84, 119, 0.08); }
.difficulty-hard { color: var(--blue); background: rgba(49, 200, 255, 0.08); }
.difficulty-demon { color: var(--violet); background: rgba(170, 105, 255, 0.08); }

.preview-grid { position: absolute; inset: 0; opacity: 0.4; background: linear-gradient(rgba(108, 255, 85, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 200, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; }
.preview-cube { position: absolute; bottom: 30%; left: 18%; width: 30px; aspect-ratio: 1; border: 3px solid var(--green); background: #0a1216; transform: rotate(13deg); box-shadow: 0 0 12px rgba(108, 255, 85, 0.45); }
.preview-gate { position: absolute; right: 16%; bottom: 22%; width: 28px; height: 72px; border: 4px solid var(--blue); border-radius: 50%; box-shadow: 0 0 16px rgba(49, 200, 255, 0.52); }
.preview-wave { position: absolute; bottom: 50%; left: 17%; width: 92px; height: 2px; background: var(--blue); box-shadow: 16px 16px 0 var(--blue), 32px 0 0 var(--blue), 48px 16px 0 var(--blue), 64px 0 0 var(--blue); transform: rotate(-12deg); }
.preview-ring { position: absolute; right: 20%; bottom: 27%; width: 42px; aspect-ratio: 1; border: 5px solid var(--yellow); border-radius: 50%; box-shadow: 0 0 15px rgba(255, 220, 97, 0.48); }
.preview-spider { position: absolute; left: 18%; bottom: 29%; width: 35px; height: 25px; border: 3px solid var(--violet); background: #15101d; box-shadow: -10px -7px 0 -7px var(--violet), 10px -7px 0 -7px var(--violet), -10px 7px 0 -7px var(--violet), 10px 7px 0 -7px var(--violet); }
.preview-column { position: absolute; right: 22%; bottom: 22%; width: 44px; height: 66px; border: 2px solid rgba(170, 105, 255, 0.7); background: rgba(170, 105, 255, 0.1); }
.preview-engine .preview-spike,
.preview-tide .preview-spike,
.preview-vault .preview-spike { right: 42%; bottom: 27%; width: 26px; height: 30px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.level-card-submit {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}

.submit-icon { display: grid; width: 68px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(108, 255, 85, 0.38); color: var(--green); background: rgba(108, 255, 85, 0.06); border-radius: 50%; box-shadow: var(--shadow-green); }
.submit-icon span { font-size: 2rem; font-weight: 300; }
.level-card-submit h3 { margin-top: 5px; }
.level-card-submit p { max-width: 320px; }
.level-card-submit a { margin-top: 6px; color: var(--green); font-size: 0.64rem; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.level-card-submit a:hover { color: #b7ffa8; }

.roadmap-panel {
  display: grid;
  gap: 40px;
  overflow: hidden;
  padding: clamp(25px, 5vw, 56px);
  border: 1px solid rgba(49, 200, 255, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(108, 255, 85, 0.1), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(49, 200, 255, 0.11), transparent 38%),
    linear-gradient(145deg, rgba(18, 25, 34, 0.92), rgba(7, 10, 14, 0.96));
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.roadmap-copy h2 { margin: 0; font-size: clamp(2.7rem, 9vw, 5.7rem); font-weight: 1000; letter-spacing: -0.065em; line-height: 0.82; text-transform: uppercase; }
.roadmap-copy > p:last-child { max-width: 600px; margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.roadmap-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.roadmap-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid rgba(132, 174, 214, 0.13); background: rgba(255, 255, 255, 0.025); border-radius: 12px; }
.roadmap-list li > span { color: #606d7c; font-size: 0.7rem; font-weight: 950; }
.roadmap-list strong { display: block; font-size: 0.75rem; letter-spacing: 0.04em; }
.roadmap-list small { display: block; margin-top: 3px; color: #7f8b9a; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.07em; }
.roadmap-list li > b { color: #717b87; font-size: 0.55rem; letter-spacing: 0.08em; }
.roadmap-list .is-live { border-color: rgba(108, 255, 85, 0.23); }
.roadmap-list .is-live > span,
.roadmap-list .is-live > b { color: var(--green); }
.roadmap-list .is-blue { border-color: rgba(49, 200, 255, 0.23); }
.roadmap-list .is-blue > span,
.roadmap-list .is-blue > b { color: var(--blue); }
.roadmap-list .is-development { border-color: rgba(255, 199, 103, 0.22); background: rgba(255, 184, 70, 0.035); }
.roadmap-list .is-development > span,
.roadmap-list .is-development > b { color: #ffc767; }

.creator-section {
  position: relative;
  padding-block: 72px;
}

.creator-section .creator-panel {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(108, 255, 85, 0.22);
  background: linear-gradient(135deg, rgba(108, 255, 85, 0.06), rgba(49, 200, 255, 0.05));
  border-radius: var(--radius);
}

.creator-panel h2 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5rem);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.creator-panel > div:first-child > p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.creator-status {
  display: grid;
  min-width: min(100%, 270px);
  gap: 13px;
  padding: 20px;
  border: 1px solid rgba(49, 200, 255, 0.22);
  background: rgba(4, 8, 12, 0.58);
  border-radius: 14px;
}

.creator-status > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.creator-status > span i {
  width: 7px;
  aspect-ratio: 1;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}

.creator-status > strong {
  font-size: 1rem;
  letter-spacing: 0.055em;
}

.creator-status > small {
  max-width: 250px;
  color: #8190a0;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.55;
}

.creator-status > small b {
  color: var(--green);
}

.page-shell .site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 0.74rem; letter-spacing: 0.11em; }
.footer-brand .brand-mark { width: 34px; }
.site-footer > p { margin: 0; color: #707c8a; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.08em; }
.site-footer > a { color: var(--blue); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.09em; }
.site-footer > a:hover { color: var(--green); }

.copy-toast { display: flex; align-items: center; gap: 9px; }
.copy-toast > span { display: grid; width: 22px; aspect-ratio: 1; place-items: center; color: #071008; background: var(--green); border-radius: 50%; }

@keyframes stage-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes stage-core {
  0%, 100% { transform: translate(-50%, -50%) scale(0.96); }
  50% { transform: translate(-50%, calc(-50% - 9px)) scale(1.04); }
}

@keyframes sigil-spin {
  to { transform: rotate(360deg); }
}

@keyframes spark-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.56; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes world-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes trail-run {
  from { transform: translateX(-40%); opacity: 0; }
  25%, 70% { opacity: 1; }
  to { transform: translateX(160%); opacity: 0; }
}

@keyframes ticker-scroll {
  to { transform: translateX(-42%); }
}

@keyframes horror-rain {
  from { transform: translate3d(-2%, -8%, 0); }
  to { transform: translate3d(4%, 12%, 0); }
}

@keyframes music-meter {
  0%, 100% { transform: scaleY(0.7); opacity: 0.58; }
  50% { transform: scaleY(2.5); opacity: 1; }
}

@media (min-width: 720px) {
  .page-shell .site-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .roadmap-panel { grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr); align-items: center; }
  .creator-section .creator-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (min-width: 820px) {
  .main-nav { display: flex; }
  .page-shell .hero { grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.74fr); }
  .hero-stage { min-height: 520px; }
  .game-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .game-card { grid-column: span 6; }
  .game-card-featured { grid-column: span 7; }
  .game-card-featured + .game-card { grid-column: span 5; }
  .game-card-coming { grid-column: span 12; display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr); }
  .game-card-coming .game-shot { min-height: 320px; border-right: 1px solid var(--line); border-bottom: 0; }
  .game-card-release { grid-column: span 12; display: grid; grid-template-columns: minmax(360px, 1.12fr) minmax(330px, 0.88fr); }
  .game-card-release .game-shot { min-height: 410px; border-right: 1px solid var(--line); border-bottom: 0; }
}

@media (max-width: 620px) {
  .music-toggle {
    width: 40px;
    padding: 9px;
    justify-content: center;
  }
  .music-toggle strong { display: none; }
  .header-subscribe { padding-inline: 11px 7px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { padding-inline: 8px; }
  .hero-stage { min-height: 360px; }
  .stage-orbit { width: 245px; }
  .stage-orbit-b { width: 185px; }
  .stage-core { width: 112px; }
  .core-rift { width: 27px; height: 60px; }
  .core-spark { top: 17px; right: 20px; }
  .stage-world { width: 38px; }
  .world-three { width: 30px; }
  .shot-number { font-size: 3.4rem; }
  .game-shot { min-height: 220px; }
  .roadmap-list li { grid-template-columns: auto minmax(0, 1fr); }
  .roadmap-list li > b { grid-column: 2; }
}

/* COMMUNITY COUNTERS + LEGAL PAGES */
.community-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.community-strip > div {
  display: grid;
  min-height: 92px;
  place-content: center;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(136, 176, 215, 0.08);
}

.community-strip strong {
  color: var(--green);
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  font-weight: 1000;
  letter-spacing: -0.035em;
}

.community-strip span {
  margin-top: 4px;
  color: #788697;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.game-community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 11px;
  border: 1px solid rgba(137, 180, 220, 0.13);
  background: rgba(3, 7, 10, 0.48);
  border-radius: 10px;
}

.game-community > span {
  color: #8290a0;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.game-community > span b { color: var(--blue); }

.like-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #c9d4df;
  background: rgba(255, 84, 119, 0.045);
  border-color: rgba(255, 84, 119, 0.24);
  border-radius: 8px;
  font-size: 0.58rem;
}

.like-button > span { color: var(--red); font-size: 1rem; line-height: 1; }
.like-button > b { color: #f3f6f9; }
.like-button:hover,
.like-button.is-active { color: #fff; background: rgba(255, 84, 119, 0.15); border-color: var(--red); box-shadow: 0 0 18px rgba(255, 84, 119, 0.12); }
.like-button:disabled { opacity: 0.6; cursor: wait; }

.game-comments {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(137, 180, 220, 0.14);
  border-radius: 12px;
  background: rgba(2, 6, 10, 0.62);
  contain: layout style;
}

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

.comments-heading > div { display: grid; gap: 2px; }
.comments-heading span {
  color: var(--green);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}
.comments-heading h4 {
  margin: 0;
  color: #f4f8fb;
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
}
.comments-heading > b {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--blue);
  border: 1px solid rgba(49, 200, 255, 0.24);
  border-radius: 999px;
  background: rgba(49, 200, 255, 0.06);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.comment-form,
.comment-edit-form { display: grid; gap: 8px; }
.comment-form textarea,
.comment-edit-input {
  display: block;
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 11px 12px;
  color: #f3f7fa;
  border: 1px solid rgba(137, 180, 220, 0.2);
  border-radius: 9px;
  outline: none;
  background: rgba(1, 4, 7, 0.82);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.55;
  caret-color: var(--green);
}
.comment-form textarea::placeholder { color: #687686; }
.comment-form textarea:focus,
.comment-edit-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 200, 255, 0.1);
}
.comment-form textarea:disabled { opacity: 0.65; }

.comment-compose-footer,
.comment-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.comment-compose-footer > span,
.comment-edit-length {
  color: #718091;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.comment-compose-footer button,
.comment-save-button,
.comment-cancel-button,
.comment-menu-button,
.comment-menu-action {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 950;
  letter-spacing: 0.07em;
  touch-action: manipulation;
}
.comment-compose-footer button,
.comment-save-button {
  padding: 9px 13px;
  color: #031009;
  border-color: rgba(92, 255, 120, 0.5);
  background: var(--green);
  font-size: 0.54rem;
}
.comment-compose-footer button:hover,
.comment-save-button:hover { box-shadow: var(--shadow-green); transform: translateY(-1px); }
.comment-compose-footer button:disabled,
.comment-save-button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.comments-state {
  margin: 12px 0 0;
  padding: 10px;
  color: #7d8b9a;
  border: 1px dashed rgba(137, 180, 220, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  line-height: 1.5;
  text-align: center;
}
.comments-state[hidden] { display: none; }
.comments-state.is-error { color: #ff9bad; border-color: rgba(255, 84, 119, 0.28); background: rgba(255, 84, 119, 0.06); }

.comment-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  margin-top: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(49, 200, 255, 0.38) transparent;
}
.comment-list:empty { display: none; }
.comment-item {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(137, 180, 220, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}
.comment-item.is-editing { border-color: rgba(49, 200, 255, 0.32); }
.comment-meta {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
}
.comment-author {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
}
.comment-date,
.comment-edited {
  color: #6f7e8e;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.comment-edited { color: var(--blue); }
.comment-body {
  margin: 7px 0 0;
  color: #dce5ed;
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-menu-wrap { position: relative; margin-left: auto; }
.comment-menu-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  padding: 0;
  place-items: center;
  color: #b8c5d1;
  border-color: rgba(137, 180, 220, 0.16);
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.05rem;
  line-height: 1;
}
.comment-menu-button:hover,
.comment-menu-button[aria-expanded="true"] { color: #fff; border-color: var(--blue); background: rgba(49, 200, 255, 0.09); }
.comment-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: 132px;
  padding: 5px;
  border: 1px solid rgba(137, 180, 220, 0.22);
  border-radius: 9px;
  background: #0a1119;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.48);
}
.comment-menu[hidden] { display: none; }
.comment-item:last-child .comment-menu { top: auto; bottom: calc(100% + 5px); }
.comment-menu-action {
  width: 100%;
  padding: 8px 10px;
  color: #dbe4ec;
  border: 0;
  background: transparent;
  font-size: 0.54rem;
  text-align: left;
}
.comment-menu-action:hover,
.comment-menu-action:focus-visible { color: #fff; background: rgba(49, 200, 255, 0.1); }
.comment-menu-action.is-danger { color: #ff829a; }
.comment-menu-action.is-danger:hover,
.comment-menu-action.is-danger:focus-visible { background: rgba(255, 84, 119, 0.12); }

.comment-edit-form { margin-top: 8px; }
.comment-edit-actions { display: flex; gap: 7px; }
.comment-cancel-button {
  padding: 8px 11px;
  color: #aebbc7;
  border-color: rgba(137, 180, 220, 0.18);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.52rem;
}
.comment-cancel-button:hover { color: #fff; border-color: rgba(137, 180, 220, 0.4); }

@media (max-width: 430px) {
  .game-comments { padding: 12px; }
  .comments-heading { align-items: flex-start; }
  .comments-heading > b { max-width: 46%; text-align: center; white-space: normal; }
  .comment-compose-footer,
  .comment-edit-footer { display: grid; grid-template-columns: 1fr; }
  .comment-compose-footer button { width: 100%; }
  .comment-edit-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .comment-edit-actions button { width: 100%; }
  .comment-meta { flex-wrap: wrap; }
  .comment-menu-wrap { margin-left: auto; }
}

.level-copy-count {
  display: block;
  margin-top: 8px;
  color: #6f7d8c;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
}

.level-copy-count b { color: var(--blue); }

.legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.legal-links a,
.footer-install-button,
.legal-footer a,
.legal-back {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.legal-links a:hover,
.footer-install-button:hover,
.legal-footer a:hover,
.legal-back:hover { color: var(--green); }

.footer-install-button {
  min-height: 36px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid rgba(108, 255, 85, 0.34);
  border-radius: 9px;
  background: rgba(108, 255, 85, 0.07);
  box-shadow: inset 0 0 18px rgba(108, 255, 85, 0.035);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.footer-install-button:hover,
.footer-install-button:focus-visible {
  color: #071008;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 22px rgba(108, 255, 85, 0.24);
}

body.install-dialog-open { overflow: hidden; }

.app-update-notice[hidden] { display: none !important; }

.app-update-notice {
  position: fixed;
  z-index: 1300;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  width: min(calc(100vw - 36px), 520px);
  min-height: 78px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  color: #eff8ff;
  border: 1px solid rgba(108, 255, 85, 0.42);
  border-radius: 16px;
  background: rgba(7, 12, 18, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 28px rgba(108, 255, 85, 0.1);
}

.app-update-notice > span {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  color: #071008;
  border-radius: 12px;
  background: var(--green);
  font-size: 1.35rem;
  font-weight: 950;
}

.app-update-notice div { display: grid; gap: 4px; }
.app-update-notice strong { color: var(--green); font-size: 0.68rem; letter-spacing: 0.1em; }
.app-update-notice small { color: #8798a8; font-size: 0.52rem; font-weight: 800; letter-spacing: 0.055em; line-height: 1.45; }
.app-update-notice button { cursor: pointer; }

#app-update-button {
  min-height: 42px;
  padding: 0 14px;
  color: #051008;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.09em;
}

#app-update-button:disabled { cursor: wait; opacity: 0.65; }

.app-update-dismiss {
  width: 34px;
  aspect-ratio: 1;
  color: #8c9aa8;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
}

@media (max-width: 560px) {
  .app-update-notice {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: auto;
  }
  #app-update-button { grid-column: 1 / -1; width: 100%; }
  .app-update-dismiss { position: absolute; top: 8px; right: 8px; }
}

.install-dialog[hidden] { display: none !important; }

.install-dialog {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  isolation: isolate;
}

.install-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  cursor: default;
  background: rgba(1, 3, 7, 0.78);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.install-card {
  position: relative;
  width: min(100%, 650px);
  max-height: min(88svh, 760px);
  padding: clamp(24px, 5vw, 44px);
  overflow: auto;
  border: 1px solid rgba(49, 200, 255, 0.38);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(108, 255, 85, 0.09), transparent 38%),
    linear-gradient(315deg, rgba(49, 200, 255, 0.1), transparent 43%),
    #0a0e15;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.66), 0 0 45px rgba(49, 200, 255, 0.11);
  animation: install-card-enter 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(49, 200, 255, 0.45) transparent;
}

.install-card::before {
  position: absolute;
  top: 0;
  right: 44px;
  left: 44px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
  box-shadow: 0 0 18px rgba(49, 200, 255, 0.55);
}

.install-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  cursor: pointer;
  place-items: center;
  color: #9aabba;
  border: 1px solid rgba(137, 180, 220, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.4rem;
  line-height: 1;
}

.install-close:hover,
.install-close:focus-visible {
  color: #071008;
  border-color: var(--green);
  background: var(--green);
}

.install-app-icon {
  width: 86px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(108, 255, 85, 0.35);
  border-radius: 24px;
  background: #070b12;
  box-shadow: 0 0 28px rgba(108, 255, 85, 0.17), 0 0 46px rgba(49, 200, 255, 0.09);
}

.install-app-icon img { width: 100%; aspect-ratio: 1; }

.install-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.install-card h2 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.7rem);
  font-weight: 1000;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

#install-dialog-copy {
  max-width: 540px;
  margin: 20px 0 24px;
  color: #a7b5c3;
  font-size: clamp(0.84rem, 2.4vw, 1rem);
  font-weight: 720;
  line-height: 1.65;
}

.install-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-benefits li {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(137, 180, 220, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.install-benefits span {
  display: block;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.install-benefits strong {
  display: block;
  color: #eaf5ff;
  font-size: 0.59rem;
  letter-spacing: 0.075em;
  line-height: 1.45;
}

.install-platform-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #b7c6d4;
  border-left: 3px solid var(--blue);
  background: rgba(49, 200, 255, 0.055);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.6;
}

.install-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.install-primary,
.install-secondary {
  min-height: 52px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.095em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.install-primary {
  color: #041009;
  border: 1px solid var(--green);
  background: linear-gradient(135deg, var(--green), #35f0b0);
  box-shadow: 0 0 24px rgba(108, 255, 85, 0.2);
}

.install-secondary {
  color: #b5c4d3;
  border: 1px solid rgba(137, 180, 220, 0.24);
  background: rgba(255, 255, 255, 0.025);
}

.install-primary:hover,
.install-primary:focus-visible,
.install-secondary:hover,
.install-secondary:focus-visible { transform: translateY(-2px); }

.install-secondary:hover,
.install-secondary:focus-visible {
  color: #fff;
  border-color: var(--blue);
  background: rgba(49, 200, 255, 0.08);
}

.install-primary:disabled { cursor: wait; filter: grayscale(0.5); opacity: 0.65; }

.install-frequency {
  display: block;
  margin-top: 14px;
  color: #677585;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.55;
}

.install-store-status {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

@keyframes install-card-enter {
  from { transform: translateY(24px) scale(0.985); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 640px) {
  .install-dialog {
    padding: max(10px, env(safe-area-inset-top)) 0 0;
    place-items: end center;
  }

  .install-dialog-backdrop {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .install-card {
    width: 100%;
    max-height: min(96svh, 820px);
    padding: 24px max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .install-app-icon { width: 68px; margin-bottom: 17px; border-radius: 19px; }
  .install-card h2 { padding-right: 36px; font-size: clamp(2.2rem, 13vw, 3.5rem); }
  #install-dialog-copy { margin-block: 15px 18px; }
  .install-benefits,
  .install-frequency,
  .install-store-status { display: none; }
  .install-platform-note { margin-top: 12px; }
  .install-actions { grid-template-columns: 1fr 1fr; }
  .install-primary,
  .install-secondary { min-height: 48px; }
}

@media (max-width: 360px) {
  .install-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .install-card { animation: none; }
  .install-primary,
  .install-secondary { transition: none; }
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(108, 255, 85, 0.09), transparent 31rem),
    radial-gradient(circle at 88% 20%, rgba(49, 200, 255, 0.08), transparent 28rem),
    var(--bg);
}

.legal-header,
.legal-shell,
.legal-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 980px);
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-shell { padding-block: clamp(58px, 9vw, 110px); }
.legal-shell h1 { margin: 14px 0 0; font-size: clamp(3rem, 12vw, 7.8rem); font-weight: 1000; letter-spacing: -0.07em; line-height: 0.82; }
.legal-lead { max-width: 800px; margin: 28px 0 54px; color: #a8b5c3; font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.75; }
.legal-shell section { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.legal-shell section h2 { margin: 0; color: var(--green); font-size: 0.74rem; font-weight: 950; letter-spacing: 0.1em; line-height: 1.5; }
.legal-shell section p,
.legal-shell section ul { margin: 0; color: #8f9dab; font-size: 0.9rem; line-height: 1.75; }
.legal-shell section ul { display: grid; gap: 8px; padding-left: 1.2rem; }
.legal-shell section p + ul,
.legal-shell section ul + p { margin-top: 12px; }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 30px 0 42px; border-top: 1px solid var(--line); }

html[data-community-api="offline"] .community-strip strong { color: #84909c; }

.clipboard-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 720px) {
  .community-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .legal-back { max-width: 110px; text-align: right; }
  .legal-shell section { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .page-shell > .site-header { padding-inline: 12px; gap: 7px; }
  .page-shell .site-header .brand-copy { display: none; }
  .page-shell .site-header .brand-mark { width: 36px; }
  .header-subscribe { min-height: 40px; padding: 7px 7px 7px 10px; font-size: 0.55rem; }
  .header-subscribe > b { min-width: 22px; height: 22px; }
}

/* Mobile performance and navigation -------------------------------------- */
.mobile-dock {
  display: none;
}

.games-section,
.level-section,
.roadmap-section,
.creator-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 920px;
}

@media (max-width: 819px), (hover: none), (pointer: coarse) {
  :root {
    --header-height: 68px;
    --shadow-green: 0 0 12px rgba(91, 255, 91, 0.14);
    --shadow-blue: 0 0 14px rgba(49, 200, 255, 0.14);
  }

  html {
    scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 10px);
    scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    text-rendering: optimizeSpeed;
  }

  body::before,
  body::after,
  .ambient-grid {
    display: none;
  }

  .page-shell {
    border-inline: 0;
    background: #070a0f;
  }

  .page-shell > .site-header {
    min-height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(5, 8, 12, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-stage,
  .game-card,
  .level-card,
  .roadmap-panel,
  .community-strip {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  }

  .stage-orbit,
  .stage-core::before,
  .stage-core::after,
  .stage-trail,
  .stage-world,
  .ticker-track,
  .shot-saw {
    animation: none;
  }

  .stage-core {
    animation: stage-core 5.5s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(108, 255, 85, 0.15), inset 0 0 20px rgba(49, 200, 255, 0.12);
  }

  .core-rift,
  .stage-trail,
  .shot-saw,
  .unknown-glyph {
    filter: none;
  }

  .ticker {
    transform: none;
  }

  .ticker-track {
    width: 100%;
    justify-content: center;
    overflow: hidden;
  }

  .ticker-track > :nth-child(n + 5) {
    display: none;
  }

  .button,
  .game-link,
  .copy-button,
  .like-button,
  .header-subscribe,
  .music-toggle,
  .mobile-dock a,
  .level-card-submit a {
    min-height: 44px;
    touch-action: manipulation;
  }

  .game-link:hover,
  .button:hover,
  .header-subscribe:hover,
  .music-toggle:hover {
    transform: none;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
    border-top: 1px solid rgba(49, 200, 255, 0.25);
    background: #070b11;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.38);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #aebbc9;
    border-radius: 9px;
    font-size: 0.66rem;
  }

  .mobile-dock a:active,
  .mobile-dock a:focus-visible {
    color: var(--green);
    background: rgba(108, 255, 85, 0.08);
  }

  .mobile-dock span {
    color: var(--blue);
    font-size: 0.78rem;
    line-height: 1;
  }

  .mobile-dock strong {
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }

  .copy-toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .page-shell > main,
  .page-shell > .site-footer {
    padding-inline: 14px;
  }

  .page-shell .hero {
    gap: 34px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .game-community {
    align-items: stretch;
  }

  .like-button {
    padding-inline: 12px;
  }

  .roadmap-panel {
    padding: 22px 16px;
  }
}

/* Phone-width hardening: keep every title, control and card inside the viewport. */
html,
body,
.page-shell {
  max-width: 100%;
}

body {
  min-width: 0;
}

:where(.page-shell, .page-shell *, .legal-page, .legal-page *) {
  min-width: 0;
}

:where(h1, h2, h3, p, a, button, strong, small, span, code) {
  overflow-wrap: anywhere;
}

@media (max-width: 430px) {
  .page-shell > .site-header {
    width: 100%;
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .page-shell > main,
  .page-shell > .site-footer {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .brand,
  .music-toggle,
  .header-subscribe {
    flex: 0 0 auto;
  }

  .header-subscribe {
    max-width: 124px;
    letter-spacing: 0.055em;
  }

  .hero {
    padding-block: 48px 42px;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    letter-spacing: -0.055em;
    line-height: 0.88;
  }

  .hero-lead,
  .hero p:not(.eyebrow):not(.kicker),
  .section-heading p,
  .game-info > p {
    font-size: clamp(0.82rem, 3.7vw, 0.95rem);
    line-height: 1.6;
  }

  .eyebrow,
  .kicker,
  .section-kicker {
    max-width: 100%;
    font-size: 0.59rem;
    letter-spacing: 0.12em;
    line-height: 1.45;
  }

  .section {
    padding-block: 58px;
  }

  .section-heading h2,
  .section-header h2,
  .roadmap-copy h2,
  .creator-panel h2 {
    font-size: clamp(2rem, 11.5vw, 3.15rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
  }

  .game-info h3 {
    font-size: clamp(1.45rem, 8.5vw, 2rem);
    line-height: 1;
  }

  .game-meta,
  .game-community,
  .tag-row,
  .legal-links {
    max-width: 100%;
  }

  .game-meta span,
  .tag-row span,
  .game-community > span,
  .game-link,
  .like-button,
  .roadmap-list strong,
  .roadmap-list small,
  .roadmap-list li > b {
    white-space: normal;
  }

  .game-link {
    padding-inline: 14px;
    line-height: 1.35;
  }

  .hero-stats dd,
  .community-strip span {
    font-size: 0.48rem;
    letter-spacing: 0.065em;
  }

  .roadmap-list li {
    gap: 9px;
    padding: 12px 10px;
  }

  .legal-header {
    gap: 10px;
  }

  .legal-shell h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
    line-height: 0.9;
  }

  .copy-toast {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    transform: translateY(18px);
  }

  .copy-toast.is-visible,
  .copy-toast.show {
    transform: none;
  }
}

@media (max-width: 350px) {
  .page-shell > .site-header {
    gap: 5px;
  }

  .page-shell .site-header .brand-mark {
    width: 32px;
  }

  .music-toggle {
    width: 36px;
    min-height: 38px;
    padding: 7px;
  }

  .header-subscribe {
    max-width: 112px;
    min-height: 38px;
    padding: 6px;
    font-size: 0.5rem;
  }

  .header-subscribe > b {
    min-width: 20px;
    height: 20px;
  }

  .hero-stats div {
    padding-inline: 5px;
  }
}

/* Safari/touch devices get the same artwork with a much cheaper compositor path. */
html.performance-lite body::before,
html.performance-lite body::after,
html.performance-lite .ambient-grid,
html.performance-lite .stage-trail {
  display: none;
}

html.performance-lite .site-header,
html.performance-lite .shot-status,
html.performance-lite .game-meta span {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.performance-lite .stage-orbit,
html.performance-lite .stage-core,
html.performance-lite .stage-core::before,
html.performance-lite .stage-core::after,
html.performance-lite .stage-world,
html.performance-lite .ticker-track,
html.performance-lite .shot-saw,
html.performance-lite .music-bars i,
html.performance-lite .shot-status i,
html.performance-lite .roadmap-list li > b::after {
  animation: none !important;
}

html.performance-lite .hero-stage,
html.performance-lite .game-card,
html.performance-lite .level-card,
html.performance-lite .roadmap-panel,
html.performance-lite .community-strip {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
