:root {
  color-scheme: dark;
  --background: var(--pixel-base);
  --surface: var(--pixel-panel);
  --line: var(--pixel-line);
  --ink: var(--pixel-ink);
  --muted: var(--pixel-muted);
  --lime: var(--pixel-lime);
  --display: var(--pixel-display);
  --utility: "Cascadia Mono", Consolas, monospace;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--background);
  background-image: var(--pixel-grid);
  background-size: 32px 32px;
}
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.hub-shell { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.hub-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  margin-top: 22px;
  border-top: 1px solid #a8d87d;
}
.hub-admin {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--background);
  color: var(--muted);
  font: 700 .82rem/1.25 var(--utility);
  text-decoration: none;
}
.hub-admin:hover { color: var(--lime); border-color: var(--lime); }
.hub-intro { overflow: hidden; }
.hub-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(370px, 30vw, 468px);
  isolation: isolate;
  padding-block: 36px 55px;
}
.hub-heading { position: relative; z-index: 1; width: fit-content; }
.hub-heading h1 {
  font: 700 clamp(3.55rem, 8.2vw, 7.6rem)/.87 var(--display);
  letter-spacing: -.075em;
  text-shadow: 2px 2px var(--background), -2px 2px var(--background), 2px -2px var(--background), -2px -2px var(--background);
}
.hub-heading h1 span { display: block; color: var(--lime); }
.hub-heading p { max-width: 290px; margin-top: 25px; color: var(--muted); font: .94rem/1.6 var(--utility); }
.hub-heading p, .format-info p { text-shadow: var(--pixel-copy-shadow); }
.hub-visual {
  position: absolute;
  z-index: -1;
  top: 22px;
  right: -3%;
  width: min(61vw, 800px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hub-earth, .hub-earth-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.hub-visual::before, .hub-visual::after { content: ""; position: absolute; inset: 0; }
.hub-visual::before {
  inset: 8% -4% 5%;
  border: 1px dashed #74926855;
  border-radius: 50%;
}
.hub-visual::after {
  z-index: -1;
  inset: 0 -34% -13% -14%;
  background: radial-gradient(ellipse closest-side, #b6fb7926, #b6fb7914 52%, #b6fb7907 75%, transparent);
}
.hub-agent-markers { position: absolute; inset: 0; }
.hub-agent {
  --marker-stem: 7px;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, calc(-100% - var(--marker-stem)));
  padding: 2px 6px 2px 2px;
  border: 1px solid currentColor;
  background: #131811;
  box-shadow: 2px 2px #0a110bba;
  color: var(--agent-ink);
  font: 700 clamp(.56rem, 1.15vw, .74rem)/1 var(--display);
}
.hub-agent[hidden] { display: none; }
.hub-agent::before, .hub-agent::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
}
.hub-agent::before { top: 100%; width: 1px; height: var(--marker-stem); }
.hub-agent::after {
  top: calc(100% + var(--marker-stem));
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 1px #131811;
  transform: translate(-40%, -40%);
}
.hub-agent-portrait {
  flex: none;
  width: clamp(20px, 2.4vw, 36px);
  aspect-ratio: 1;
  background: url("assets/hub/earth-agents.webp") var(--portrait-x) 0 / 1200% 100% no-repeat;
  image-rendering: pixelated;
}
.hub-formats {
  flex: 1;
  min-height: 370px;
  padding-block: 28px 54px;
  color: #172012;
  background: var(--lime);
  border-top: 3px solid #d5ffa9;
}
.hub-formats h2 { display: flex; align-items: center; gap: 16px; margin-bottom: 17px; font: 700 clamp(1.3rem, 2.8vw, 2rem)/1.15 var(--display); letter-spacing: -.055em; }
.hub-formats h2::after { content: ""; height: 1px; background: #17201245; flex: 1; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 0; list-style: none; }
.format-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 3px solid #141813;
  text-decoration: none;
}
.format-card:focus-visible { outline-color: #172012; }
.format-link { transition: background-color .18s; }
.format-link:hover { background: #2f3b2b; }
.format-art {
  position: relative;
  isolation: isolate;
  height: clamp(135px, 15vw, 195px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(#e8f4e012 1px, transparent 1px), linear-gradient(90deg, #e8f4e012 1px, transparent 1px);
  background-size: 16px 16px;
}
.format-art-ranks { background-color: #263d32; }
.format-art-guessing { background-color: #293333; }
.format-art-clips { display: grid; place-items: center; background-color: #343025; }
:is(.format-art-ranks, .format-art-guessing, .format-art-clips)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13% 13%;
  border: 2px solid #bafa7b42;
  background: #121b1780;
}
.format-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 8px 0 #121b17ba); transition: transform .18s; }
.format-main { z-index: 1; width: 38%; height: 84%; top: 8%; left: 31%; }
.format-flank { width: 27%; height: 59%; top: 23%; }
.format-flank-left { left: 13%; }
.format-flank-right { right: 13%; }
.format-link:hover .format-main { transform: translateY(-4px); }
.clip-play { display: grid; place-items: center; z-index: 1; width: 35%; height: 57%; background: #232e21; border: 2px solid #b6fb79; box-shadow: 5px 5px #171e14; }
.clip-play::before { content: ""; width: 41%; aspect-ratio: 1; background: #b6fb79; clip-path: polygon(16% 0, 100% 50%, 16% 100%); }
.format-art-cheater {
  display: grid;
  place-items: center;
  background-color: #352226;
}
.format-art-cheater::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13%;
  border: 2px solid #ff6a7460;
  background: #200f13a8;
}
.cheater-bust {
  position: relative;
  height: 83%;
  aspect-ratio: 1.06;
  filter: drop-shadow(5px 7px 0 #200e15);
}
.cheater-shoulders, .cheater-head, .cheater-glasses { position: absolute; }
.cheater-shoulders {
  inset: 48% 2% 5%;
  background: linear-gradient(90deg, #ff4658 0 53%, #df233b 53%);
  clip-path: polygon(0 100%, 0 53%, 8% 53%, 8% 34%, 18% 34%, 18% 19%, 32% 19%, 32% 0, 68% 0, 68% 19%, 82% 19%, 82% 34%, 92% 34%, 92% 53%, 100% 53%, 100% 100%);
}
.cheater-head {
  inset: 4% 24% 43%;
  background: linear-gradient(90deg, #ff5261 0 65%, #e5233c 65%);
  clip-path: polygon(18% 0, 82% 0, 82% 9%, 92% 9%, 92% 20%, 100% 20%, 100% 77%, 91% 77%, 91% 89%, 78% 89%, 78% 100%, 22% 100%, 22% 89%, 9% 89%, 9% 77%, 0 77%, 0 20%, 8% 20%, 8% 9%, 18% 9%);
}
.cheater-glasses {
  inset: 25% 20% 59%;
  background: linear-gradient(#1b1218, #1b1218) center 32% / 100% 24% no-repeat;
}
.cheater-glasses::before, .cheater-glasses::after {
  content: "";
  position: absolute;
  inset: 0 55% 0 7%;
  background: linear-gradient(135deg, #746371 0 26%, #342530 26% 48%, #1b1218 48%);
  border: 3px solid #1b1218;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 85% 80%, 85% 100%, 15% 100%, 15% 80%, 0 80%);
}
.cheater-glasses::after { left: 55%; right: 7%; }
.cheater-label {
  position: absolute;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: .2em .5em .3em;
  color: #b70e2a;
  background: #fffaf3;
  box-shadow: 4px 5px 0 #230e17;
  font: 700 clamp(1.35rem, 3vw, 2rem)/1 var(--display);
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.format-info { min-height: 91px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px; }
.format-info h3 { font: 700 clamp(1.13rem, 2.45vw, 2rem)/1.05 var(--display); letter-spacing: -.07em; overflow-wrap: anywhere; }
.format-info p { margin-top: 5px; color: var(--muted); font: .84rem/1.35 var(--utility); }
.format-action { flex: none; padding: 5px 8px; color: var(--lime); border: 1px solid #b6fb7972; font: 700 .84rem/1.2 var(--utility); }
.format-link:hover .format-action { color: var(--background); background: var(--lime); border-color: var(--lime); }

@media (min-width: 1151px) {
  .format-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .format-info h3 { font-size: clamp(1.13rem, 2vw, 1.65rem); }
}
@media (max-width: 1150px) { .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .hub-shell { width: calc(100% - 40px); }
  .hub-hero { min-height: 365px; }
  .hub-visual { width: 68vw; right: -12%; top: 35px; }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hub-shell { width: calc(100% - 28px); }
  .hub-header { min-height: 56px; margin-top: 12px; }
  .hub-admin { font-size: .73rem; }
  .hub-hero { min-height: max(380px, calc(165px + 59vw)); align-items: start; padding-block: 24px; }
  .hub-heading h1 { font-size: clamp(2.65rem, 11vw, 3.65rem); }
  .hub-heading p { margin-top: 12px; max-width: 235px; font-size: .86rem; }
  .hub-visual { top: 165px; right: 50%; width: max(360px, 99vw); transform: translateX(50%); }
  .hub-formats { padding-block: 21px 31px; }
  .format-grid { grid-template-columns: 1fr; gap: 12px; }
  .format-art { height: 152px; }
  .format-info { min-height: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .format-link, .format-art img { transition: none; }
  .format-link:hover .format-main { transform: none; }
}
