:root {
  color-scheme: dark;
  --ink: #e9fff9;
  --muted: #9bb4af;
  --dim: #6f8783;
  --bg: #061014;
  --bg-deep: #03090c;
  --panel: #0b181d;
  --panel-strong: #102329;
  --line: #1f3a3f;
  --line-bright: #2e5b5e;
  --mint: #52e6c2;
  --mint-dark: #092d28;
  --amber: #ffbd4a;
  --danger: #ff786e;
  --focus: #a9ffe9;
  --shadow: 0 24px 70px rgb(0 0 0 / 32%);
  --radius: 0.8rem;
  --max: 92rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgb(82 230 194 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(82 230 194 / 3%) 1px, transparent 1px),
    radial-gradient(circle at 12% -10%, rgb(40 160 138 / 18%), transparent 34rem),
    var(--bg);
  background-size: 2.5rem 2.5rem, 2.5rem 2.5rem, auto, auto;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 0, rgb(3 9 12 / 62%) 72%, var(--bg-deep) 100%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-color: rgb(82 230 194 / 45%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--mint);
  text-decoration-color: currentColor;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

:focus-visible {
  outline: 0.18rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  color: var(--bg-deep);
  background: var(--focus);
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem max(1rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgb(82 230 194 / 14%);
  background: rgb(3 9 12 / 88%);
  backdrop-filter: blur(1rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand b {
  color: var(--mint);
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.18rem;
  padding: 0.35rem;
  border: 1px solid var(--line-bright);
  border-radius: 0.35rem;
  background: var(--mint-dark);
  box-shadow: inset 0 0 1rem rgb(82 230 194 / 8%);
}

.brand-mark i {
  display: block;
  height: 45%;
  background: var(--mint);
}

.brand-mark i:nth-child(2) {
  height: 100%;
}

.brand-mark i:nth-child(3) {
  height: 70%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
}

.site-header nav a {
  padding-block: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.catalog-shell,
.listing-shell,
.detail-shell,
.prose-shell,
.empty-page {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.catalog-shell,
.listing-shell {
  padding-block: clamp(2rem, 5vw, 4.75rem) 5rem;
}

.catalog-intro {
  display: grid;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.catalog-intro > p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.catalog-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.catalog-overview > div {
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: rgb(8 21 25 / 96%);
}

.catalog-overview strong {
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.15rem;
}

.catalog-overview span,
.shortcut-row > span,
.popular-row > span {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shortcut-row,
.popular-row,
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.shortcut-row > span,
.popular-row > span {
  min-width: 6.5rem;
}

.shortcut-chip,
.active-filter,
.filter-toggle {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(7 18 22 / 82%);
  font-size: 0.8rem;
  font-weight: 750;
}

.shortcut-chip:hover,
.active-filter:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.shortcut-chip span {
  margin-left: 0.25rem;
  color: var(--dim);
}

.active-filters {
  margin: 0.8rem 0 0;
}

.active-filter {
  border-color: rgb(82 230 194 / 45%);
  color: var(--mint);
  background: var(--mint-dark);
}

.filter-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  border-radius: 0.45rem;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--mint);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 4.7rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-top: 0.2rem solid var(--mint);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(16 35 41 / 95%), rgb(8 21 25 / 96%));
  box-shadow: var(--shadow);
}

.filter-panel > div {
  min-width: 0;
}

.search-field {
  grid-column: 1 / -1;
}

.filter-panel label {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  padding: 0.66rem 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: 0.45rem;
  color: var(--ink);
  background: #071216;
}

.filter-panel input::placeholder {
  color: var(--dim);
}

.filter-panel input:hover,
.filter-panel select:hover {
  border-color: #4e7776;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--mint);
}

.catalog-status {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.catalog-status p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.84rem;
}

.reset-button,
.load-more {
  min-height: 2.75rem;
  border: 1px solid var(--line-bright);
  border-radius: 0.45rem;
  color: var(--ink);
  background: transparent;
  font-weight: 750;
}

.reset-button {
  padding-inline: 0.9rem;
}

.reset-button:hover,
.load-more:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgb(82 230 194 / 5%);
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.script-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(16 35 41 / 95%), rgb(8 20 24 / 96%));
  box-shadow: 0 0 0 transparent;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.script-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 24%);
  transform: translateY(-0.15rem);
}

.card-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, rgb(82 230 194 / 16%) 0.08rem, transparent 0.1rem) 0 0 / 1rem 1rem,
    #091b20;
  text-decoration: none;
}

.card-media::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 0.12rem solid var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0.8rem var(--mint);
  content: "";
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.script-card:hover .card-media img {
  transform: scale(1.025);
}

.card-placeholder {
  color: rgb(82 230 194 / 68%);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.card-body {
  display: flex;
  min-height: 17rem;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--dim);
  font-size: 0.78rem;
}

.card-meta a {
  overflow: hidden;
  color: var(--mint);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-meta time {
  flex: none;
}

.card-body h3 {
  margin: 0.85rem 0 0.7rem;
}

.card-body h3 a {
  text-decoration: none;
}

.card-body > p {
  display: -webkit-box;
  margin: 0.9rem 0 1.2rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-description {
  min-height: 4.2em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  min-height: 1.65rem;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border: 1px solid #3c5354;
  border-radius: 999px;
  color: #c4d4d0;
  background: #122328;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag-key {
  border-color: rgb(255 189 74 / 48%);
  color: var(--amber);
  background: rgb(62 44 12 / 58%);
}

.tag-verified {
  border-color: rgb(82 230 194 / 48%);
  color: var(--mint);
  background: var(--mint-dark);
}

.card-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.load-zone {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.load-more {
  min-width: 12rem;
  padding-inline: 1.25rem;
}

[hidden] {
  display: none !important;
}

.empty-state,
.notice {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgb(7 18 22 / 76%);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block: 2rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.detail-shell {
  padding-bottom: 5rem;
}

.detail-layout {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgb(15 33 39 / 98%), rgb(7 17 21 / 98%));
  box-shadow: var(--shadow);
}

.detail-media {
  display: grid;
  min-height: 16rem;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #07171c;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-placeholder {
  padding: 2rem;
  color: rgb(82 230 194 / 58%);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.detail-copy {
  padding: clamp(1.2rem, 4vw, 3rem);
}

.detail-copy h1 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.detail-description {
  max-width: 67ch;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.facts > div {
  min-width: 0;
  padding: 0.85rem;
  background: #09171b;
}

.facts dt {
  color: var(--dim);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 750;
}

.primary-cta {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--mint);
  border-radius: 0.45rem;
  color: #02110e;
  background: var(--mint);
  box-shadow: 0 0.8rem 2rem rgb(82 230 194 / 14%);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.primary-cta:hover {
  color: #02110e;
  background: #7bf2d6;
}

.monetized-note {
  max-width: 66ch;
  margin: 0.75rem 0 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.content-note {
  max-width: 62rem;
  margin: 2rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 0.2rem solid var(--amber);
  background: rgb(255 189 74 / 6%);
}

.content-note h2 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.content-note p {
  margin: 0;
  color: var(--muted);
}

.listing-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.listing-pager a {
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
}

.listing-pager a:last-child {
  text-align: right;
}

.listing-pager span {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-pager strong {
  display: -webkit-box;
  margin-top: 0.3rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-listings {
  margin-top: 3.5rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.listing-heading {
  margin-bottom: 2rem;
}

.listing-heading h1 {
  margin-bottom: 0.75rem;
}

.listing-heading > p:last-child {
  color: var(--muted);
}

.prose-shell,
.empty-page {
  max-width: 58rem;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.prose-shell h1,
.empty-page h1 {
  margin-bottom: 1rem;
}

.prose-shell .lead,
.empty-page > p:not(.eyebrow) {
  max-width: 52ch;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.prose-shell section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose-shell section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.prose-shell section p {
  max-width: 68ch;
  color: var(--muted);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

.site-footer p {
  max-width: 50rem;
  margin: 0;
}

.site-footer strong {
  color: var(--muted);
}

.trending-compact {
  margin: 1.5rem 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(73, 230, 200, 0.08), rgba(77, 126, 255, 0.05));
}

.trending-compact .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trending-compact h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.trending-compact ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trending-compact li a {
  display: grid;
  gap: 0.2rem;
  min-height: 4.3rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(5, 14, 19, 0.55);
}

.trending-compact li span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trending-compact li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 40rem) {
  .catalog-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .catalog-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  }
}

@media (min-width: 64rem) {
  .filter-panel {
    grid-template-columns: minmax(17rem, 2.2fr) repeat(5, minmax(7rem, 1fr));
    align-items: end;
  }

  .search-field {
    grid-column: auto;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(28rem, 0.92fr);
    align-items: stretch;
  }

  .detail-media {
    min-height: 39rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (min-width: 86rem) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.35rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-intro {
    margin-bottom: 1.4rem;
  }

  .shortcut-row > span,
  .popular-row > span {
    width: 100%;
  }

  .filter-toggle {
    display: flex;
  }

  .filter-panel.filters-collapsed {
    display: none;
  }

  .listing-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-pager a:last-child {
    text-align: left;
  }

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

  .primary-cta {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .trending-compact .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trending-compact ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

@media (forced-colors: active) {
  .brand-mark,
  .filter-panel,
  .script-card,
  .detail-layout {
    border: 1px solid CanvasText;
  }
}

/* Atlas redesign layer: keeps the existing semantic markup and catalog behavior. */
:root {
  --atlas-bg: #0b0e16;
  --atlas-sidebar: #0e121d;
  --atlas-surface: #151b29;
  --atlas-raised: #192030;
  --atlas-hover: #222c42;
  --atlas-border: #2b3446;
  --atlas-text: #f6f9ff;
  --atlas-muted: #99a6bc;
  --atlas-accent: #4d78ff;
  --atlas-accent-hover: #658aff;
  --atlas-success: #3adea2;
  --atlas-warning: #ffbd4a;
  --bg: var(--atlas-bg);
  --bg-deep: var(--atlas-bg);
  --panel: var(--atlas-surface);
  --panel-strong: var(--atlas-raised);
  --line: var(--atlas-border);
  --line-bright: #405274;
  --ink: var(--atlas-text);
  --muted: var(--atlas-muted);
  --dim: #73819a;
  --mint: var(--atlas-accent);
  --mint-dark: #1c2c53;
  --focus: #9db5ff;
  --radius: 15px;
  --max: 1124px;
}

html { background: var(--atlas-bg); }
body {
  background: var(--atlas-bg);
  color: var(--atlas-text);
}
body::before { display: none; }
a { text-decoration-color: transparent; }
a:hover { color: var(--atlas-text); }

.atlas-sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: 226px;
  flex-direction: column;
  padding: 28px 16px 20px;
  border-right: 1px solid var(--atlas-border);
  background: var(--atlas-sidebar);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 34px; }
.brand { gap: 10px; color: var(--atlas-text); font-weight: 800; text-decoration: none; }
.brand b { display: block; color: var(--atlas-text); font-size: 1.05rem; letter-spacing: .03em; }
.brand small { display: block; margin-top: -1px; color: var(--atlas-muted); font-size: .53rem; letter-spacing: .19em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--atlas-accent); box-shadow: 0 9px 24px rgb(77 120 255 / 28%); transform: rotate(-8deg); }
.brand-mark i { background: #0f1830; }
.sidebar-nav { display: grid; gap: 4px; }
.nav-label { margin: 0 16px 8px; color: #687792; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-label-more { margin-top: 30px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 14px; border-radius: 11px; color: var(--atlas-muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav-item:hover { color: var(--atlas-text); background: rgb(255 255 255 / 4%); }
.nav-item.is-active { color: var(--atlas-text); background: #2a3b61; box-shadow: inset 2px 0 var(--atlas-accent); }
.nav-icon { display: inline-grid; width: 18px; place-items: center; color: #8da1c3; font-size: 1rem; }
.nav-item.is-active .nav-icon { color: #9eb5ff; }
.sidebar-status { display: grid; gap: 7px; margin-top: auto; padding: 20px 16px 16px; border: 1px solid #32415e; border-radius: 15px; background: linear-gradient(145deg, #1c2d55, #151f35); color: #8f9eb9; font-size: .64rem; text-transform: uppercase; }
.sidebar-status strong { color: var(--atlas-text); font-size: .76rem; text-transform: none; }
.sidebar-status small { color: #a5b2c8; font-size: .71rem; line-height: 1.45; text-transform: none; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--atlas-success); box-shadow: 0 0 10px var(--atlas-success); }
.sidebar-footnote { margin: 26px 4px 0; color: #61708b; font-size: .67rem; line-height: 1.45; text-align: center; }
.drawer-close, .menu-toggle, .drawer-overlay { display: none; }
.atlas-app { min-height: 100vh; margin-left: 226px; }
.site-header { position: sticky; z-index: 20; top: 0; width: min(calc(100% - 80px), var(--max)); min-height: 84px; margin: 0 auto; padding: 0; border-bottom: 1px solid var(--atlas-border); background: rgb(11 14 22 / 90%); backdrop-filter: blur(16px); }
.topbar-context { display: flex; align-items: center; gap: 6px; color: var(--atlas-muted); font-size: .78rem; }
.topbar-context strong { color: var(--atlas-text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-search { display: flex; width: 290px; min-height: 38px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--atlas-border); border-radius: 12px; color: #8290a9; background: var(--atlas-surface); }
.topbar-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--atlas-text); background: transparent; font-size: .75rem; }
.topbar-search kbd { padding: 2px 5px; border: 1px solid #34415b; border-radius: 5px; color: #8794ab; font-size: .62rem; white-space: nowrap; }
.language-button, .profile-chip { min-height: 38px; border: 1px solid var(--atlas-border); border-radius: 11px; color: var(--atlas-text); background: var(--atlas-surface); font-size: .73rem; font-weight: 800; }
.language-button { padding: 0 11px; }
.profile-chip { display: grid; width: 38px; place-items: center; border: 0; background: #35519c; font-size: .95rem; }

.catalog-shell, .listing-shell, .detail-shell, .prose-shell, .empty-page { width: min(calc(100% - 80px), var(--max)); }
.catalog-shell, .listing-shell { padding-block: 26px 52px; }
.atlas-hero { position: relative; display: grid; min-height: 338px; grid-template-columns: 1.15fr .85fr; align-items: center; overflow: hidden; padding: 40px 48px; border: 1px solid #40598c; border-radius: 22px; background: linear-gradient(120deg, #162243, #1d356e 65%, #213b7b); }
.atlas-hero::after { position: absolute; inset: 0; background: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px); background-size: 26px 26px; content: ""; pointer-events: none; }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.hero-copy { max-width: 540px; }
.hero-copy .eyebrow { display: flex; align-items: center; color: #a9bffb; font-size: .72rem; }
.hero-copy h1 { max-width: 12ch; margin: 0 0 16px; font-size: clamp(3rem, 5vw, 4rem); letter-spacing: -.065em; }
.hero-copy h1 em { color: #8ba7ff; font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 43ch; margin: 0; color: #b1bfd7; font-size: .9rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-primary, .hero-secondary { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 0 17px; border-radius: 10px; font-size: .77rem; font-weight: 800; text-decoration: none; }
.hero-primary { color: white; background: var(--atlas-accent); box-shadow: 0 10px 24px rgb(46 88 209 / 36%); }
.hero-primary:hover { background: var(--atlas-accent-hover); }
.hero-secondary { border: 1px solid #6381c0; color: #e6edff; background: rgb(18 31 65 / 65%); }
.hero-art { min-height: 240px; }
.art-card { position: absolute; display: grid; width: 132px; height: 158px; place-items: center; border: 6px solid rgb(255 255 255 / 14%); border-radius: 15px; color: rgb(255 255 255 / 80%); font-size: 4rem; box-shadow: 0 18px 25px rgb(3 8 21 / 35%); transform: rotate(-15deg); }
.art-card-one { left: 10%; bottom: 6%; background: #5e9b4f; transform: rotate(-22deg); }
.art-card-two { left: 30%; top: 8%; background: #196f98; transform: rotate(-11deg); }
.art-card-three { right: 4%; bottom: 0; background: #bd3f79; transform: rotate(13deg); }
.art-star { position: absolute; top: 2%; left: 25%; color: white; font-size: 1.4rem; }
.catalog-overview { display: flex; grid-template-columns: none; justify-content: flex-start; gap: 58px; margin: 20px 0 34px; overflow: visible; border: 0; background: transparent; }
.catalog-overview > div { display: grid; grid-template-columns: 38px auto; min-height: 0; align-items: center; column-gap: 10px; padding: 0; background: transparent; }
.catalog-overview .stat-icon { grid-row: span 2; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #91adff; background: #1b2b51; }
.catalog-overview strong { font-family: inherit; font-size: 1.1rem; line-height: 1; }
.catalog-overview > div > span:last-child { grid-column: 2; color: #7c8aa4; font-size: .7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 5px; font-size: 1.55rem; }
.section-heading > div > p:last-child, .section-heading > p { margin: 0; color: #8090aa; font-size: .78rem; }
.section-heading .eyebrow { margin-bottom: 7px; color: #87a3ff; font-size: .7rem; }
.section-heading .text-link { color: #86a5ff; font-size: .75rem; font-weight: 800; text-decoration: none; }
.trending-section { margin-bottom: 40px; }
.trending-section .section-heading { margin-bottom: 16px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game-card { overflow: hidden; border: 1px solid var(--atlas-border); border-radius: 15px; background: var(--atlas-surface); }
.game-card-media { position: relative; display: block; aspect-ratio: 1.65; overflow: hidden; background: #1a2948; text-decoration: none; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 5px; color: white; background: rgb(13 21 38 / 80%); font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-card-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
.game-card-body h3 { margin: 0 0 3px; font-size: .84rem; letter-spacing: -.02em; }
.game-card-body h3 a { text-decoration: none; }
.game-card-body span { color: #8492ad; font-size: .67rem; }
.game-card-arrow { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border-radius: 7px; color: #a4bbff; background: #263a68; font-weight: 800; text-decoration: none; }
.catalog-section { scroll-margin-top: 100px; }
.mobile-quick-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.mobile-quick-filters .shortcut-chip:first-child { color: white; border-color: var(--atlas-accent); background: var(--atlas-accent); }
.shortcut-chip, .active-filter, .filter-toggle { min-height: 35px; padding: 0 12px; border: 1px solid var(--atlas-border); border-radius: 9px; color: #9daac0; background: var(--atlas-surface); font-size: .72rem; }
.filter-panel { border-top: 0; background: var(--atlas-surface); box-shadow: none; }
.filter-panel input, .filter-panel select { border-color: var(--atlas-border); border-radius: 9px; background: #101624; }
.filter-panel input:focus, .filter-panel select:focus { border-color: var(--atlas-accent); }
.catalog-status { min-height: 46px; }
.catalog-status p { font-family: inherit; font-size: .72rem; }
.reset-button, .load-more { border-color: var(--atlas-border); border-radius: 9px; }
.script-card { border-color: var(--atlas-border); border-radius: 15px; background: var(--atlas-surface); box-shadow: none; }
.script-card:hover { border-color: #526992; background: #182134; box-shadow: 0 14px 30px rgb(0 0 0 / 18%); }
.card-media { border-bottom-color: var(--atlas-border); background: #182540; }
.card-media::after { border-color: #90aaff; box-shadow: 0 0 10px #5b7eff; }
.card-body { min-height: 15rem; padding: 14px; }
.card-meta a { color: #9db5ff; font-family: inherit; font-size: .67rem; }
.card-meta, .card-foot { color: #7e8da7; font-size: .68rem; }
.card-body h3 { font-size: .9rem; }
.card-body > p { color: #8997ae; font-size: .76rem; }
.tag { min-height: 20px; border-color: #304261; border-radius: 5px; color: #9eb7ff; background: #1c2d50; font-size: .61rem; }
.tag-key { border-color: #5a4568; color: #d4a5de; background: #362541; }
.tag-verified { border-color: #1d665b; color: #6de0be; background: #123a37; }
.text-link { color: #9bb5ff; font-weight: 800; }
.detail-layout { border-color: var(--atlas-border); border-radius: 16px; background: var(--atlas-surface); box-shadow: none; }
.detail-media { background: #111a2c; border-color: var(--atlas-border); }
.detail-copy { padding: clamp(1.2rem, 4vw, 2.6rem); }
.primary-cta { border: 0; border-radius: 9px; color: white; background: var(--atlas-accent); box-shadow: 0 10px 24px rgb(46 88 209 / 28%); }
.primary-cta:hover { color: white; background: var(--atlas-accent-hover); }
.facts > div { background: #101624; }
.content-note { border: 1px solid var(--atlas-border); border-left: 3px solid var(--atlas-accent); border-radius: 12px; background: var(--atlas-surface); }
.listing-pager a { border-color: var(--atlas-border); border-radius: 12px; background: var(--atlas-surface); }
.site-footer { width: min(calc(100% - 80px), var(--max)); min-height: 74px; padding-block: 22px; border-top-color: var(--atlas-border); color: #71809a; font-size: .68rem; }
.site-footer p:first-child { max-width: none; }
.site-footer strong { margin-right: 12px; color: #b7c4db; }
.prose-shell section { border-top-color: var(--atlas-border); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 64rem) {
  .filter-panel { grid-template-columns: minmax(17rem, 2.2fr) repeat(5, minmax(7rem, 1fr)); }
}
@media (max-width: 63.99rem) {
  .atlas-sidebar { transform: translateX(-102%); transition: transform 180ms ease; box-shadow: 20px 0 50px rgb(0 0 0 / 35%); }
  body.drawer-open .atlas-sidebar { transform: translateX(0); }
  .drawer-close, .menu-toggle { display: grid; place-items: center; border: 0; color: var(--atlas-text); background: transparent; }
  .drawer-close { width: 32px; height: 32px; font-size: 1.4rem; }
  .drawer-overlay { position: fixed; z-index: 30; inset: 0; background: rgb(2 5 12 / 70%); }
  body.drawer-open .drawer-overlay { display: block; }
  .atlas-app { margin-left: 0; }
  .site-header { display: flex; align-items: center; gap: 14px; width: min(calc(100% - 32px), var(--max)); }
  .topbar-context { flex: 1; }
  .topbar-search { width: 38px; padding: 0; justify-content: center; }
  .topbar-search input, .topbar-search kbd, .language-button { display: none; }
  .topbar-search span { font-size: 1.2rem; }
  .catalog-shell, .listing-shell, .detail-shell, .prose-shell, .empty-page, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .atlas-hero { min-height: 309px; grid-template-columns: 1fr; padding: 28px 20px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 10vw, 3.3rem); }
  .hero-art { position: absolute; right: -35px; bottom: -70px; width: 180px; min-height: 170px; opacity: .8; transform: scale(.8); }
  .catalog-overview { gap: 12px; justify-content: space-between; margin-bottom: 28px; }
  .catalog-overview > div { grid-template-columns: 30px auto; column-gap: 6px; }
  .catalog-overview .stat-icon { width: 30px; height: 30px; font-size: .75rem; }
  .catalog-overview strong { font-size: .95rem; }
  .catalog-overview > div > span:last-child { font-size: .58rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card-body { padding: 9px; }
  .game-card-body h3 { font-size: .72rem; }
  .game-card-body span { font-size: .59rem; }
  .game-card-arrow { width: 23px; height: 23px; }
}
@media (max-width: 39.99rem) {
  .site-header { min-height: 64px; }
  .catalog-shell, .listing-shell { padding-top: 16px; }
  .atlas-hero { border-radius: 17px; }
  .hero-copy > p:not(.eyebrow) { max-width: 34ch; font-size: .78rem; }
  .hero-actions a { min-height: 42px; padding-inline: 12px; font-size: .7rem; }
  .catalog-overview { gap: 7px; }
  .catalog-overview > div { display: grid; grid-template-columns: 25px auto; }
  .catalog-overview .stat-icon { width: 25px; height: 25px; border-radius: 8px; font-size: .65rem; }
  .catalog-overview strong { font-size: .83rem; }
  .catalog-overview > div > span:last-child { font-size: .5rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-heading h2 { font-size: 1.35rem; }
  .section-heading .text-link { align-self: flex-end; margin-top: -28px; }
  .game-grid { gap: 9px; }
  .game-card { border-radius: 12px; }
  .game-card-badge { top: 6px; left: 6px; padding: 3px 5px; font-size: .5rem; }
  .mobile-quick-filters { margin-bottom: 9px; }
  .mobile-quick-filters .shortcut-chip { min-height: 32px; padding-inline: 9px; font-size: .66rem; }
  .filter-panel { grid-template-columns: minmax(0, 1fr); }
  .catalog-status { align-items: flex-start; flex-direction: column; gap: 8px; }
  .catalog-grid { gap: 9px; }
  .card-body { min-height: 12.8rem; padding: 10px; }
  .card-meta { display: block; }
  .card-meta time { display: block; margin-top: 2px; }
  .card-body h3 { margin-block: .6rem; font-size: .75rem; }
  .card-body > p { min-height: 5.5em; margin-block: .55rem .8rem; font-size: .65rem; }
  .card-foot { align-items: end; flex-direction: column; gap: 5px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer strong { display: block; margin-bottom: 4px; }
}
