:root {
  --ink: #10151d;
  --ink-soft: #17222a;
  --paper: #fff3c4;
  --paper-deep: #f3dfa2;
  --coral: #ff7043;
  --mint: #b7df2d;
  --amber: #f5dc4b;
  --blue: #50d5d2;
  --steel: #80909b;
  --line: #fff3c430;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font: 18px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 2%, #1c2a3c 0%, #10151d 40%),
    radial-gradient(circle at 88% 18%, #1f312f 0%, #10151d 47%),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(circle at 20% 30%, #f4e8d02e 0 1px, #0000 1.5px);
  background-size: 17px 19px;
  z-index: 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(14px, 5vw, 74px);
  background: #10151ddb;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 7px 14px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
}

.brand-title {
  display: block;
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.brand-subtitle {
  margin-top: 2px;
  display: block;
  color: #aab2b3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.portal-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-nav a,
.portal-nav a:visited {
  font-size: 0.86rem;
  color: #c9c8c0;
  text-decoration: none;
}

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

.status-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: 0.72rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.portal-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 4.5rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(210px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  background: #0f1a28dc;
  border-radius: 0.75rem;
  overflow: hidden;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.lede {
  max-width: 50ch;
  color: #c0c8cb;
}

.microcopy {
  margin-top: 0.8rem;
  color: var(--amber);
  font-style: italic;
}

.button-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.3rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.91rem;
}

.btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 4px 4px var(--coral);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--paper);
}

.hero-art {
  min-height: 230px;
  border: 1px solid #fff8;
  border-radius: 10px;
  background: #0c1b27 var(--hero-art) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #0f1724ea, transparent 40%, #10151de8);
}

.hero-art::before {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: #0b1420d9;
  border: 1px solid var(--line);
  border-left: 8px solid var(--coral);
  padding: 8px 10px;
  color: var(--paper-deep);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  background: #10151dd7;
  padding: 1rem 1.15rem;
}

.panel + .panel,
.card + .card,
section + section {
  margin-top: 1rem;
}

.catalog-grid {
  display: grid;
  gap: 1rem;
}

.directory-section {
  margin-top: 2.8rem;
}

.catalog-grid .panel {
  margin-top: 0;
}

.panel-title {
  margin-bottom: 0.75rem;
  display: block;
  color: var(--amber);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions-list {
  margin: 0;
  padding-left: 1.1rem;
}

ol,
ul {
  padding-left: 1.25rem;
}

code,
pre {
  overflow-wrap: anywhere;
  color: #d8f4e5;
}

pre {
  margin: 0.9rem 0 0;
  padding: 0.8rem;
  border-radius: 0.5rem;
  background: #04090ec7;
  border-left: 3px solid var(--mint);
}

.portal-footer {
  margin-top: 1.8rem;
  color: #aab2b6;
  font-size: 0.86rem;
}

.portal-footer a {
  color: #8fe4ec;
}

.catalog {
  --hero-art: url('/images/portal-hero-index.png?v=20260727');
}

.droid {
  --hero-art: url('/images/portal-hero-droid.png?v=20260727');
}

.xu4 {
  --hero-art: url('/images/portal-hero-xu4.png?v=20260727');
}

.palworld {
  --hero-art: url('/images/portal-hero-palworld.png?v=20260727');
}

.eqlegends {
  --hero-art: url('/images/portal-hero-eqlegends.png?v=20260727');
}

.frotz {
  --hero-art: url('/images/portal-hero-frotz-v1.png?v=20260727');
}

.spottie-quest {
  --hero-art: url('/images/portal-hero-spottie-quest-v1.png?v=20260727');
}

.pixel-art-forge {
  --hero-art: url('/images/portal-hero-pixel-art-forge-v1.png?v=20260727');
}

.lanceromugen {
  --hero-art: url('/images/portal-hero-lanceromugen-v1.png?v=20260727');
}

.studio {
  --hero-art: url('/images/portal-hero-studio-v1.png?v=20260727');
}

.channel-cheevos {
  --hero-art: url('/images/portal-hero-channel-cheevos-v1.png?v=20260727');
}

.channel-cheevos-play {
  --hero-art: url('/images/portal-hero-channel-cheevos-play-v1.png?v=20260727');
}

.channel-cheevos-support {
  --hero-art: url('/images/portal-hero-channel-cheevos-support-v1.png?v=20260727');
}

.questy-player {
  --hero-art: url('/images/portal-hero-questy-player-v1.png?v=20260727');
}

.questy-gm {
  --hero-art: url('/images/portal-hero-questy-gm-v1.png?v=20260727');
}

.notice {
  color: var(--amber);
}

.warning {
  color: #ffc97a;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .status-pill {
    display: none;
  }
  .page-hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 190px;
    order: -1;
  }
  .portal-shell {
    padding-top: 1rem;
  }
}

@media (max-width: 620px) {
  .portal-nav {
    display: none;
  }
  .brand-subtitle {
    display: none;
  }
  .portal-shell {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

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