:root {
  --bg: #03070d;
  --bg-deep: #010308;
  --bg-panel: rgba(9, 14, 24, 0.72);
  --bg-panel-strong: rgba(10, 16, 28, 0.84);
  --line: rgba(118, 194, 255, 0.17);
  --line-strong: rgba(126, 203, 255, 0.35);
  --text: #f4f8ff;
  --muted: #9db1c7;
  --blue: #4ab4ff;
  --blue-hot: #80ddff;
  --silver: #d8e3f2;
  --amber: #ffb061;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-sm: 16px;
  --shell: min(1240px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 88, 160, 0.18), transparent 22%),
    radial-gradient(circle at 92% 12%, rgba(31, 149, 211, 0.14), transparent 20%),
    linear-gradient(180deg, #030810 0%, #01050a 52%, #010206 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button,
input,
select { font: inherit; }

.site-shell { position: relative; overflow: clip; min-height: 100vh; }
.shell { width: var(--shell); margin-inline: auto; position: relative; z-index: 1; }

.page-grid {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-grid-svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(1100px, 92vw);
  transform: translate(-50%, -48%);
  opacity: 0.85;
}

.page-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(100px);
}

.page-glow-primary {
  top: 6rem;
  right: -7rem;
  background: rgba(48, 153, 255, 0.24);
}

.page-glow-secondary {
  left: -10rem;
  bottom: 12rem;
  background: rgba(74, 180, 255, 0.18);
}

.hero-blur {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(74, 180, 255, 0.3);
  filter: blur(110px);
  transform: translate(-50%, -52%);
}

.corner-art {
  position: fixed;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.corner-top {
  top: 0;
  right: 0;
}

.corner-bottom {
  left: 0;
  bottom: 0;
}
.page-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 16px 0 0;
  transition: padding 180ms ease;
}

.site-header.is-scrolled { padding-top: 8px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(108, 167, 224, 0.12);
  background: rgba(5, 10, 18, 0.58);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.site-header.is-scrolled .header-inner {
  border-bottom-color: rgba(128, 213, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(105, 190, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brandmark { display: flex; align-items: center; gap: 0; min-width: 0; }
.brandmark-chip {
  display: none;
}
.brandmark-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(250px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(18, 103, 184, 0.18));
}
.brandmark-copy { display: grid; min-width: 0; }
.brandmark-title,
.footer-inner .brandmark-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.brandmark-sub {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  transition: color 140ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 212, 255, 0.85), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
body[data-page="home"] .site-nav a[href="./index.html"],
body[data-page="how"] .site-nav a[href="./how-it-plays.html"],
body[data-page="cards"] .site-nav a[href="./cards.html"],
body[data-page="media"] .site-nav a[href="./media.html"],
body[data-page="community"] .site-nav a[href="./community.html"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
body[data-page="home"] .site-nav a[href="./index.html"]::after,
body[data-page="how"] .site-nav a[href="./how-it-plays.html"]::after,
body[data-page="cards"] .site-nav a[href="./cards.html"]::after,
body[data-page="media"] .site-nav a[href="./media.html"]::after,
body[data-page="community"] .site-nav a[href="./community.html"]::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(117, 198, 255, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  overflow: hidden;
}

.header-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.16) 48%, transparent 85%);
  transform: translateX(-130%);
  transition: transform 280ms ease;
}

.header-cta:hover::before,
.button:hover::before { transform: translateX(130%); }

.header-cta:hover,
.button:hover {
  transform: translateY(2px);
  border-color: rgba(138, 218, 255, 0.42);
}

.header-cta,
.button-primary {
  background: linear-gradient(135deg, rgba(20, 126, 194, 0.76), rgba(8, 45, 105, 0.96));
  color: var(--silver);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(4, 17, 46, 0.4);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 24px;
  padding: 50px 0 36px;
}

.eyebrow,
.tech-label {
  margin: 0;
  color: var(--blue-hot);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1,
.section-heading h2,
.showcase-copy h3,
.product-copy h2,
.final-cta h2,
.page-highlight h2 {
  margin: 12px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(4rem, 9.4vw, 7rem); }
.page-intro h1,
.section-heading h2,
.product-copy h2,
.final-cta h2,
.page-highlight h2 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
.showcase-copy h3 { font-size: clamp(1.8rem, 4vw, 3rem); }

.hero-body,
.intro-body,
.compact-panel p:last-child,
.showcase-copy p,
.systems-step p,
.product-copy p,
.final-cta p,
.page-highlight p,
.glass-panel p,
.cards-meta,
.footer-copy {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.page-actions,
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-meta,
.product-points,
.bullet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.product-points span,
.bullet-grid span,
.tech-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 197, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  font-size: 0.8rem;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-stage-haze {
  position: absolute;
  inset: 12% 10% auto;
  height: 72%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 149, 255, 0.16), rgba(56, 149, 255, 0));
  filter: blur(40px);
}

.hero-pack,
.hero-card,
.product-pack,
.product-stack {
  position: absolute;
  border-radius: 22px;
  border: 1px solid rgba(135, 210, 255, 0.2);
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.92), rgba(5, 11, 21, 0.98));
  box-shadow: var(--shadow);
}

.hero-pack {
  top: 20px;
  right: 84px;
  width: 210px;
  height: 300px;
  overflow: hidden;
}

.hero-pack-shell,
.hero-card-frame {
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.hero-pack-kicker,
.hero-pack-code,
.hero-card-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--blue-hot);
}

.hero-pack-title {
  margin: 18px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-pack-code { position: absolute; bottom: 18px; left: 18px; color: var(--silver); }

.hero-card {
  width: 280px;
  height: 390px;
  overflow: hidden;
}

.hero-card-back { opacity: 0.42; }
.hero-card-left { left: -12px; bottom: 92px; transform: rotate(-14deg); }
.hero-card-right { right: -18px; bottom: 70px; transform: rotate(13deg); }
.hero-card-front { z-index: 2; bottom: 12px; left: 50%; transform: translateX(-50%); }

.hero-card-frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-head,
.hero-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hero-card-body h2 {
  margin: 12px 0 0;
  font-size: 2.8rem;
}

.hero-card-body p:last-child { margin: 14px 0 0; }

.hero-card-frame.is-card-render {
  inset: 8px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(4, 10, 18, 0.72);
}

.hero-card-render {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.08), rgba(3, 7, 13, 0.92));
}

.hero-card-name {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-card-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 193, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.hero-pack-sheen,
.hero-card-sheen,
.product-pack-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 16%, rgba(255, 255, 255, 0.2) 48%, transparent 82%);
  transform: translateX(-120%);
  animation: sheenSweep 7s linear infinite;
}

.hero-rpm {
  position: absolute;
  left: 14px;
  top: 38px;
  display: grid;
  gap: 10px;
}

.hero-rpm span {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(92, 158, 207, 0.16);
}

.hero-rpm span:nth-child(-n+3) { background: rgba(92, 192, 255, 0.3); }
.hero-rpm span:nth-child(4) { background: rgba(255, 176, 97, 0.28); }

.hero-trackline {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 208, 255, 0.62), transparent);
}

.hero-trackline-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue-hot);
  box-shadow: 0 0 24px rgba(128, 221, 255, 0.4);
  transform: translateY(-50%);
  animation: racingLine 4s ease-in-out infinite;
}

.section-spaced { margin-top: 28px; padding-bottom: 14px; }
.glass-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-strong));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.compact-panel { padding: 22px; }
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.value-icon,
.systems-count {
  margin: 0;
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.compact-panel h3,
.systems-step h3,
.media-placeholder h2,
.community-grid h2,
.how-grid h2 {
  margin: 14px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.text-link {
  color: var(--blue-hot);
  font-size: 0.94rem;
}

.showcase-layout,
.product-layout,
.page-intro,
.cards-toolbar,
.page-highlight,
.media-placeholder,
.community-grid article,
.how-grid article {
  padding: 24px;
}

.showcase-layout { display: grid; gap: 18px; }
.showcase-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-filter {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(113, 182, 239, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.showcase-filter.is-active {
  color: var(--text);
  border-color: rgba(122, 212, 255, 0.36);
  background: rgba(60, 149, 227, 0.14);
}

.showcase-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.88fr);
  gap: 24px;
  align-items: center;
}

.showcase-viewer {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.feature-card-shell,
.catalogue-card-shell {
  position: relative;
  width: min(100%, 330px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.92), rgba(5, 10, 18, 0.98));
  border: 1px solid rgba(125, 207, 255, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card-frame,
.catalogue-card-frame {
  position: relative;
  padding: 14px;
  border-radius: inherit;
}

.feature-card-image,
.catalogue-card-image {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: rgba(255, 255, 255, 0.02);
}

.feature-card-overlay,
.catalogue-card-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.2), rgba(3, 7, 13, 0.92));
}

.feature-card-name,
.catalogue-card-name {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.56rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.feature-card-meta,
.catalogue-card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 193, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-copy { max-width: 34rem; }

.systems-section { padding-bottom: 30px; }
.systems-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.systems-step { padding: 24px; min-height: 240px; }
.systems-racing-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(118, 201, 255, 0.7), rgba(255, 255, 255, 0));
  z-index: -1;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 24px;
}

.product-stage {
  position: relative;
  min-height: 420px;
}

.product-pack {
  left: 50%;
  top: 44px;
  width: 250px;
  height: 340px;
  transform: translateX(-50%);
  overflow: hidden;
}

.product-stack {
  width: 220px;
  height: 310px;
  opacity: 0.45;
}

.product-stack-a {
  left: 40px;
  bottom: 18px;
  transform: rotate(-12deg);
}

.product-stack-b {
  right: 40px;
  bottom: 40px;
  transform: rotate(11deg);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.interior-page {
  padding: 38px 0 56px;
  display: grid;
  gap: 18px;
}

.how-grid,
.media-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bullet-grid {
  margin-top: 0;
  justify-content: flex-start;
}

.cards-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.55fr));
  gap: 14px;
}

.field { display: grid; gap: 8px; }
.field-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-control {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(117, 194, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.input-control::placeholder { color: var(--muted); }
.cards-meta { margin-top: 18px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalogue-card-shell { width: 100%; }
.catalogue-card-shell[data-tilt-shell] { will-change: transform; }

.catalogue-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(128, 204, 255, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid rgba(126, 193, 249, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: var(--muted);
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-float { animation: heroFloat 8s ease-in-out infinite; }
.hero-float-delayed { animation: heroFloat 9s ease-in-out infinite reverse; }

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes sheenSweep {
  0%, 12% { transform: translateX(-120%); }
  26%, 100% { transform: translateX(140%); }
}

@keyframes racingLine {
  0%, 100% { left: 2%; }
  50% { left: 94%; }
}

@media (max-width: 1100px) {
  .hero,
  .showcase-content,
  .product-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .value-strip,
  .systems-timeline,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .hero-pack {
    right: auto;
    left: 8px;
    top: 8px;
  }

  .hero-card-left { left: -12px; bottom: 92px; transform: rotate(-14deg); }
  .hero-card-right { right: -18px; bottom: 70px; transform: rotate(13deg); }

  .value-strip,
  .systems-timeline,
  .how-grid,
  .media-grid,
  .community-grid,
  .cards-toolbar-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .showcase-viewer { min-height: 380px; }

  .corner-art {
    opacity: 0.28;
    transform: scale(0.78);
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
.opening-band {
  padding-top: 42px;
}

.opening-panel {
  padding: 34px;
}

.opening-copy {
  max-width: 52rem;
}

.opening-title {
  margin: 10px 0 0;
  max-width: 15ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.opening-body {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.opening-actions {
  margin-top: 22px;
}

@media (max-width: 780px) {
  .opening-panel {
    padding: 24px;
  }
}






.rules-page {
  grid-template-columns: 1fr;
}

.rules-toc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.rules-toc a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(117, 194, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.rules-toc a:hover {
  color: var(--text);
  border-color: rgba(128, 213, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.rules-stack {
  display: grid;
  gap: 16px;
}

.rule-section {
  padding: 24px;
}

.rule-section h2,
.rule-section h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.rule-section h2 {
  margin: 10px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.rule-section h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.rule-section ul,
.rule-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.rule-section li + li {
  margin-top: 6px;
}

.rule-inline {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(117, 194, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
}

@media (max-width: 980px) {
  .rules-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rules-toc {
    grid-template-columns: 1fr;
  }
}






.cards-page {
  gap: 26px;
}

.cards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  padding: 32px;
}

.cards-hero-copy h1,
.cards-browser-intro h2,
.cards-rail-head h3,
.cards-empty-state h3,
.cards-detail-copy h2 {
  margin: 12px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.cards-hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.cards-browser-intro h2,
.cards-detail-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.cards-section-note {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cards-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cards-stat-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(126, 201, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.cards-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards-stat-value {
  display: block;
  margin-top: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
}

.cards-section-heading {
  align-items: end;
}

.cards-rail-stack {
  display: grid;
  gap: 18px;
}

.cards-rail {
  padding: 22px;
}

.cards-rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cards-rail-label {
  margin: 0;
  color: var(--blue-hot);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cards-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cards-rail-card,
.cards-grid-card {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cards-rail-frame {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(125, 207, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.92), rgba(5, 10, 18, 0.98));
  box-shadow: var(--shadow);
}

.cards-rail-image {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  display: block;
}

.cards-rail-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.06), rgba(3, 7, 13, 0.94));
}

.cards-rail-name {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.cards-rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cards-browser-shell {
  display: grid;
  gap: 18px;
}

.cards-browser-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cards-browser-bar {
  padding: 0;
}

.cards-browser-sticky {
  position: sticky;
  top: 92px;
  z-index: 6;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.cards-browser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr) repeat(3, minmax(160px, 0.55fr));
  gap: 14px;
  align-items: end;
}

.cards-search-field {
  min-width: 0;
}

.cards-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(117, 194, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.cards-mode-button,
.cards-type-chip,
.cards-filter-pill,
.cards-detail-nav-button,
.cards-modal-close {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(117, 194, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.cards-mode-button.is-active,
.cards-type-chip.is-active,
.cards-filter-pill,
.cards-detail-nav-button:hover,
.cards-modal-close:hover {
  border-color: rgba(122, 212, 255, 0.34);
  background: rgba(60, 149, 227, 0.14);
}

.cards-type-chips,
.cards-active-filters,
.cards-detail-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cards-type-chip,
.cards-filter-pill,
.cards-detail-nav-button,
.cards-modal-close {
  padding: 0 16px;
}

.cards-filter-pill-clear {
  background: rgba(255, 176, 97, 0.08);
  border-color: rgba(255, 176, 97, 0.16);
}

.cards-browser-meta {
  margin-top: 0;
}

.cards-results-shell {
  display: grid;
  gap: 18px;
}

.cards-grid {
  gap: 18px;
}

.cards-grid-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-browser {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid-card {
  position: relative;
}

.cards-grid-quick {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(3, 7, 13, 0.88);
  border: 1px solid rgba(124, 206, 255, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.cards-grid-card:hover .cards-grid-quick,
.cards-grid-card:focus-visible .cards-grid-quick {
  opacity: 1;
  transform: translateY(0);
}

.cards-results-actions {
  display: flex;
  justify-content: center;
}

.cards-load-more[hidden] {
  display: none;
}

.cards-empty-state {
  display: grid;
  gap: 8px;
  text-align: left;
}

.cards-skeleton-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 16px;
  overflow: hidden;
}

.cards-skeleton-card {
  display: block;
  aspect-ratio: 5 / 7;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(124, 206, 255, 0.1), rgba(255, 255, 255, 0.03));
  background-size: 220% 100%;
  animation: cardsPulse 1.8s linear infinite;
}

.cards-skeleton-card-large {
  width: 100%;
}

.cards-modal {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.cards-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.cards-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 8, 0.76);
  backdrop-filter: blur(14px);
}

.cards-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
}

.cards-modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.cards-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cards-detail-shell {
  width: min(100%, 420px);
}

.cards-detail-frame {
  padding: 16px;
}

.cards-detail-copy {
  display: grid;
  gap: 18px;
}

.cards-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cards-detail-field {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(117, 194, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.cards-detail-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cards-detail-value {
  display: block;
  margin-top: 10px;
}

.cards-detail-section {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(117, 194, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.cards-detail-section h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.cards-detail-actions,
.cards-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cards-modal-open {
  overflow: hidden;
}

.cards-rail-error {
  padding: 22px;
}

@keyframes cardsPulse {
  0% { background-position: 220% 0; }
  100% { background-position: -20% 0; }
}

@media (max-width: 1200px) {
  .cards-browser-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .cards-hero,
  .cards-browser-intro,
  .cards-modal-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .cards-hero-stats,
  .cards-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .cards-hero,
  .cards-browser-sticky,
  .cards-modal-dialog,
  .cards-rail,
  .cards-toolbar,
  .cards-browser-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cards-browser-grid,
  .cards-hero-stats,
  .cards-detail-grid,
  .cards-grid-browser,
  .cards-grid-showcase {
    grid-template-columns: 1fr;
  }

  .cards-browser-sticky {
    top: 82px;
  }

  .cards-rail-track {
    grid-auto-columns: minmax(190px, 78vw);
  }

  .cards-modal {
    padding: 0;
  }

  .cards-modal-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }
}


