:root {
  --bg: #050505;
  --panel: #090909;
  --panel-2: #0f0f0f;
  --paper: #efede7;
  --line: rgba(255,255,255,0.72);
  --line-soft: rgba(255,255,255,0.2);
  --text: #f4f1ea;
  --ink: #111;
  --muted: #c9c4bb;
  --yellow: #f2db11;
  --blue: #2444ff;
  --green: #6bff57;
  --shadow: 0 0 0 2px #f0ece2 inset;
  --max: 1620px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.07), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(36,68,255,0.08), transparent 14%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.04), transparent 18%),
    #000;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.07) 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  opacity: 0.22;
  mix-blend-mode: screen;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.page-shell {
  width: min(calc(100vw - 26px), var(--max));
  margin: 14px auto 28px;
}

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

.panel {
  position: relative;
  background: var(--panel);
  border: 2px solid rgba(255,255,255,0.85);
  overflow: hidden;
}

.panel-thin {
  border-width: 1px;
}

.panel-subtle {
  background: #000;
  border: 2px solid rgba(255,255,255,0.85);
}

.panel-light {
  background: var(--paper);
  color: var(--ink);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    #060606;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  position: relative;
  transform: rotate(45deg);
}
.brand-mark span {
  position: absolute;
  background: #fff;
}
.brand-mark span:nth-child(1) {
  width: 16px; height: 7px; left: 0; top: 12px;
}
.brand-mark span:nth-child(2) {
  width: 7px; height: 24px; right: 4px; top: 0;
}
.brand-mark span:nth-child(3) {
  width: 10px; height: 10px; right: 0; bottom: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 1.6px;
  opacity: 0.92;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 700;
}
.main-nav a { opacity: 0.92; }
.main-nav span { opacity: 0.55; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.55);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.03);
}
.social-btn-x {
  font-weight: 900;
  font-size: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  transition: transform 160ms ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-top {
  background: var(--yellow);
  color: #111;
  border: 2px solid #111;
  padding: 12px 22px;
  font-size: 15px;
}
.cta-top span { font-size: 20px; line-height: 1; }

.hero {
  padding: 18px;
  background: #030303;
}

.hero-grid {
  display: grid;
  grid-template-columns: 126px minmax(500px, 0.92fr) minmax(720px, 1.58fr);
  gap: 18px;
  align-items: stretch;
  height: clamp(420px, 25.5vw, 468px);
  min-height: 0;
}

.hero-art,
.hero-scene {
  min-width: 0;
  min-height: 0;
}

.hero-art img,
.portrait-mini img,
.gaffer-art-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art img {
  object-position: 57% 42%;
}

.hero-scene {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  padding: 4px 4px 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.scribble-label {
  color: var(--blue);
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
  position: relative;
  width: fit-content;
}
.scribble-label::after {
  content: "";
  position: absolute;
  left: 0; right: -8px; bottom: -6px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0, var(--blue) 8%, var(--blue) 84%, transparent 100%);
}

.hero-title {
  margin: 0;
  font-size: clamp(58px, 5.8vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f3f1ea;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,0.1), 0 0 18px rgba(255,255,255,0.03);
}
.hero-title span { color: #e9e7df; }
.hero-jp {
  margin-top: 12px;
  color: var(--yellow);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
}
.hero-body {
  margin: 12px 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #ebe7de;
  max-width: 38ch;
}

.world-status {
  width: fit-content;
  margin: 0 0 10px;
  padding: 7px 10px;
  border: 1px solid rgba(242,219,17,0.78);
  color: var(--yellow);
  background: rgba(242,219,17,0.06);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-primary {
  background: var(--yellow);
  color: #111;
  border: 2px solid #111;
  padding: 16px 20px;
  font-size: 15px;
}
.cta-secondary {
  background: rgba(255,255,255,0.02);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
  padding: 16px 20px;
  font-size: 15px;
}
.play-dot { font-size: 16px; }

.row-grid {
  display: grid;
  gap: 0;
}

.ecosystem-row {
  grid-template-columns: 120px repeat(5, 1fr) 180px;
  align-items: stretch;
}

.capabilities-layout {
  grid-template-columns: 120px repeat(4, 1fr);
}

.gaffer-layout {
  grid-template-columns: 1.05fr 2.65fr;
}

.row-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 14px 16px;
  min-height: 100%;
}
.row-label-title {
  font-size: 16px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
}
.row-label-icon,
.row-label-stripes,
.row-label-burst {
  opacity: 0.95;
}
.globe-icon {
  width: 30px; height: 30px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  position: relative;
}
.globe-icon::before,
.globe-icon::after {
  content: "";
  position: absolute;
  inset: 5px 12px;
  border-left: 1px solid rgba(255,255,255,0.75);
  border-right: 1px solid rgba(255,255,255,0.75);
}
.globe-icon::after {
  inset: 12px 5px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.75);
}
.row-label-stripes {
  width: 22px;
  height: 70px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.92) 0 4px,
    transparent 4px 9px
  );
}
.row-label-burst {
  width: 20px; height: 20px;
  background: var(--blue);
  clip-path: polygon(50% 0, 60% 35%, 100% 50%, 60% 65%, 50% 100%, 40% 65%, 0 50%, 40% 35%);
}

.ecosystem-card,
.cap-card,
.portrait-mini,
.gaffer-intro,
.gaffer-overview {
  min-height: 104px;
}

.ecosystem-card {
  padding: 12px 18px 14px;
  border-left-width: 1px;
  border-right-width: 1px;
}
.tile-dark {
  background: #060606;
}
.tile-yellow {
  background: var(--yellow);
  color: #111;
}
.dotted::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 84px; height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.23) 0.8px, transparent 0.8px);
  background-size: 7px 7px;
  opacity: 0.45;
}
.tile-id {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.8;
}
.tile-icon {
  margin-top: 10px;
  width: 56px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: inherit;
}
.planet-icon::before {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.planet-icon::after {
  content: "";
  position: absolute;
  width: 52px; height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.star-icon::before,
.star-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 40px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.star-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.star-icon {
  filter: drop-shadow(0 0 0 currentColor);
}
.star-icon span { display: none; }
.target-icon::before,
.target-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.target-icon::after { inset: 17px; }
.target-icon { position: relative; }
.target-icon span { display: none; }
.target-icon > i,
.target-icon > b { display: none; }
.target-icon::marker { content: none; }
.target-icon::before { box-shadow: 0 0 0 12px transparent inset; }
.target-icon::after { box-shadow: none; }
.target-icon:after, .target-icon:before { pointer-events:none; }
.target-icon:before { }
.target-icon {
  background:
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.terminal-icon {
  border: 2px solid currentColor;
  width: 52px;
  height: 38px;
  font-family: Consolas, monospace;
  font-size: 21px;
}
.gaffer-icon {
  font-size: 30px;
  font-weight: 900;
}
.ecosystem-card h3 {
  margin: 6px 0 6px;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ecosystem-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: inherit;
  opacity: 0.95;
}
.portrait-mini img { min-height: 100%; }

.cap-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 18px 18px 20px;
  min-height: 140px;
}
.cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.07) 0.8px, transparent 0.8px);
  background-size: 8px 8px;
  opacity: 0.45;
  pointer-events: none;
}
.cap-copy { position: relative; z-index: 1; }
.cap-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
}
.cap-copy p {
  margin: 0;
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.45;
}
.cap-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  color: var(--blue);
}
.brain-icon {
  border: 3px solid var(--blue);
  border-radius: 14px 14px 10px 10px;
}
.brain-icon::before,
.brain-icon::after {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; width: 2px;
  background: var(--blue);
  left: 50%; transform: translateX(-50%);
}
.brain-icon::after {
  width: 24px; height: 2px; top: 22px; left: 12px; transform: none;
}
.eye-icon {
  border: 3px solid var(--blue);
  border-radius: 50% / 60%;
}
.eye-icon::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.action-icon {
  clip-path: polygon(22% 10%, 42% 10%, 42% 36%, 60% 36%, 60% 10%, 80% 10%, 80% 44%, 62% 44%, 62% 90%, 42% 90%, 42% 54%, 22% 54%);
  background: var(--blue);
}
.world-icon {
  border: 3px solid var(--blue);
  border-radius: 50%;
}
.world-icon::before,
.world-icon::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  border-left: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  inset: 6px 14px;
}
.world-icon::after {
  left: 6px; right: 6px; top: 50%; bottom: auto; height: 0;
  border-left: 0; border-right: 0;
  border-top: 2px solid var(--blue);
  transform: translateY(-50%);
}

.cap-memory {
  background-image: linear-gradient(to right, rgba(255,255,255,0.94), rgba(255,255,255,0.88)), url('/assets/img/intense_manga_eye_in_ink_and_blue.png');
  background-position: right center;
  background-size: auto 100%;
}
.cap-convo {
  background-image: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.87)), url('/assets/img/brooding_manga_hero_with_blue_accents.png');
  background-position: right center;
  background-size: auto 100%;
}
.cap-consequence {
  background-image: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.90)), url('/assets/img/gritty_blue_toned_cityscape_reverie.png');
  background-position: right center;
  background-size: cover;
}
.cap-worlds {
  background-image: linear-gradient(to right, rgba(255,255,255,0.96), rgba(255,255,255,0.90)), url('/assets/img/gritty_blue_toned_cityscape_reverie.png');
  background-position: right center;
  background-size: cover;
}

.gaffer-intro {
  padding: 18px 22px 18px 24px;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gaffer-intro h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}
.gaffer-intro p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
}
.text-link {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.gaffer-overview {
  background: #040404;
  display: flex;
  flex-direction: column;
}
.gaffer-overview-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gaffer-overview-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 164px;
}
.club-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px 18px 18px;
}
.club-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.badge-circle {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255,255,255,0.86);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.badge-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.9;
}
.club-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat-box {
  padding: 14px 12px 6px 0;
  min-width: 0;
}
.stat-box + .stat-box {
  border-left: 1px solid rgba(255,255,255,0.14);
  padding-left: 12px;
}
.stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.62;
  margin-bottom: 8px;
}
.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.stat-value em {
  color: var(--green);
  font-style: normal;
}
.stat-value small {
  font-size: 14px;
  opacity: 0.88;
}
.gaffer-art-strip {
  min-height: 100%;
  border-left: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 1420px) {
  .hero-grid { grid-template-columns: 108px minmax(430px, .92fr) minmax(620px, 1.55fr); height: 420px; }
  .hero-title { font-size: clamp(54px, 5.9vw, 84px); }
  .ecosystem-row { grid-template-columns: 110px repeat(5, 1fr) 140px; }
  .gaffer-layout { grid-template-columns: 1fr 2.2fr; }
}

@media (max-width: 1160px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 88px 1fr; height: auto; }
  .hero-art { min-height: 360px; }
  .hero-scene { grid-column: 1 / -1; aspect-ratio: 2 / 1; height: auto; }
  .ecosystem-row,
  .capabilities-layout,
  .gaffer-layout {
    grid-template-columns: 1fr;
  }
  .row-label { flex-direction: row; align-items: center; }
  .portrait-mini { min-height: 220px; }
  .gaffer-overview-body { grid-template-columns: 1fr; }
  .club-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-box:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .page-shell { width: min(calc(100vw - 16px), var(--max)); }
  .hero { padding: 12px; }
  .hero-grid { grid-template-columns: 1fr; height: auto; }
  .hero-art { min-height: 260px; max-height: 360px; }
  .hero-scene { aspect-ratio: 2 / 1; height: auto; }
  .hero-title { font-size: 46px; }
  .hero-jp { font-size: 24px; }
  .hero-body { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .ecosystem-card,
  .cap-card,
  .gaffer-intro,
  .gaffer-overview { min-height: auto; }
  .club-stats { grid-template-columns: 1fr; }
  .stat-box + .stat-box { border-left: 0; padding-left: 0; }
}

/* Product status + live links */
.cta-coming {
  cursor: default;
  user-select: none;
}
.cta-coming:hover { transform: none; }

.mini-status {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--yellow);
  font-size: 7px;
  letter-spacing: .7px;
  vertical-align: middle;
}

.gaffer-card {
  display: block;
  text-decoration: none;
}
.gaffer-card:hover {
  filter: brightness(1.03);
}
