/* ============================================================
   ETA Games — house base stylesheet
   Drop this in unchanged. Add page-specific rules AFTER it.
   Tokens are the contract: never redefine them per page.
   ============================================================ */

:root {
  /* Sampled from eta.games: a deep plum-indigo, not a neutral black.
     The page carries soft glows; panels sit slightly darker than the
     glow, which is what gives the site its depth. */
  --bg: #0b0716;
  --bg-2: #0f0a1e;
  --card: #120c20;
  --card-hover: #191130;
  --line: #2a1e42;
  --line-soft: #241a3a;

  --text: #f3f0f8;
  --text-dim: #a096b8;
  --text-faint: #7a6f96;
  --text-done: #7d7296;

  --pink: #ff2e88;
  --pink-soft: #ff5ba1;
  --pink-dim: #a8265c;
  --pink-glow: rgba(255, 46, 136, 0.35);
  --amber: #ff8a3d;

  /* Orbitron carries the squared display voice from eta.games;
     Poppins the geometric body. Inter stays for dense numeric
     metadata, where it stays readable at 11px. */
  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
  --font-body: "Poppins", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --radius: 10px;
  --gap: 14px;
  --shell: 1960px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  position: relative;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Large soft glows, fixed so they do not scroll with the content.
   This is what stops the page reading as flat black. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 780px at 16% 4%,  rgba(103, 38, 158, 0.30), transparent 62%),
    radial-gradient(1000px 680px at 84% 18%, rgba(56, 30, 128, 0.26), transparent 64%),
    radial-gradient(1400px 900px at 50% 112%, rgba(255, 46, 136, 0.11), transparent 60%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- shell ---------- */

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 4px 0;
  flex: 0 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  height: 30px;
}
.logo img { height: 21px; width: auto; display: block; }

.backlink {
  color: var(--text-dim);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.backlink:hover { color: var(--text); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.topbar-right strong { color: var(--text); font-weight: 600; }
.signout { color: var(--pink); }
.signout:hover { color: var(--pink-soft); }

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 26px;
  padding: 16px 4px 0;
  flex: 0 0 auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 11px;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.tab:hover { color: var(--text); }
.tab svg { width: 15px; height: 15px; opacity: 0.85; }
.tab.active { color: var(--text); border-bottom-color: var(--pink); }
.tab.active svg { color: var(--pink); opacity: 1; }

.tab-badge {
  background: rgba(255, 46, 136, 0.16);
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

/* ---------- page head ---------- */

.pagehead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 4px 0;
  flex: 0 0 auto;
}
.pagehead h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}
.pagehead .sub { color: var(--text-dim); font-size: 13.5px; }

.cta {
  margin-left: auto;
  border: 1px solid var(--pink);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s;
}
.cta:hover {
  background: rgba(255, 46, 136, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.08);
}

/* ---------- filter pills ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px 4px 14px;
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #100a1e;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.pill:hover { border-color: #2e2e36; background: #181030; }
.pill .n { color: var(--text-faint); font-size: 12px; }
.pill.active {
  border-color: var(--pink);
  background: rgba(255, 46, 136, 0.09);
}
.pill.active .n { color: var(--pink-soft); }

/* ---------- scroll region ---------- */

#view-tasks, #view-overview, #view-map {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scroller {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 60px 4px;
  scrollbar-width: thin;
  scrollbar-color: #3d2f5e transparent;
}
.scroller::-webkit-scrollbar { width: 9px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb {
  background: #3d2f5e;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
.scroller::-webkit-scrollbar-thumb:hover { background: #4c3d70; }

/* ---------- sections ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
}
.section-head:first-child { margin-top: 2px; }
.section-head h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head .meta { color: var(--text-faint); font-size: 12.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 1700px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1400px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid { grid-template-columns: 1fr; } }

/* ---------- task card ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px 12px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.card:hover { background: var(--card-hover); border-color: #382a58; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge {
  font-size: 11.5px;
  line-height: 1.5;
  padding: 2.5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-dim);
}
.card.done .badge {
  border-color: rgba(255, 46, 136, 0.45);
  color: var(--pink-soft);
}
.card.progress .badge {
  border-color: rgba(255, 46, 136, 0.55);
  background: rgba(255, 46, 136, 0.14);
  color: #ff9ec5;
}
.card.notstarted .badge { color: #a79dbd; }

.menu {
  color: #4a3a6b;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  letter-spacing: -0.05em;
}
.card.progress .menu { color: var(--amber); }
.menu:hover { color: var(--text-dim); }

.card h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.card.done { }
.card.done h3 { color: var(--text-done); text-decoration: line-through; text-decoration-color: rgba(160,160,170,.55); }
.card.done .who, .card.done .setter { opacity: 0.62; }

.card.progress {
  border-color: rgba(255, 46, 136, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 46, 136, 0.06);
}

.prog {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}
.bar {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 999px;
  background: #241a3a;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0186f, var(--pink));
}
.count { font-size: 11.5px; color: var(--text-faint); flex: 0 0 auto; }
.card.done .count { color: #5c4d80; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 46, 136, 0.14);
  color: var(--pink-soft);
  font-size: 8px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.setter { white-space: nowrap; }

/* ---------- overview ---------- */

.ov-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 4px 16px;
  flex: 0 0 auto;
}
.ov-head h1 {
  font-size: 27px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
}
.ov-head h1 em { font-style: normal; color: var(--pink); }
.ov-sub { color: var(--text-dim); font-size: 14px; }
.ov-date {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.ov-scroll { padding-top: 0; }

.ov-top {
  display: grid;
  grid-template-columns: 1.12fr 1.55fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
@media (max-width: 1500px) { .ov-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px)  { .ov-top { grid-template-columns: 1fr; } }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.panel-head .right {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.panel-head .right b { color: var(--text-dim); font-weight: 600; font-size: 12.5px; }

/* game panel */
.game {
  border-color: rgba(255, 46, 136, 0.55);
  display: flex;
  flex-direction: column;
}
.game .title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.game .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 136, 0.14);
}
.game .title h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.game .pct { margin-left: auto; font-size: 23px; font-weight: 600; color: var(--pink); letter-spacing: -0.02em; }

.game .bar { height: 4px; flex: 0 0 auto; margin-bottom: 20px; }

.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1 1 auto;
}
.quad .box {
  background: #0e0919;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 92px;
}
.quad .box b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.quad .box b.accent { color: var(--pink); }
.quad .box span { color: var(--text-dim); font-size: 12.5px; margin-top: 7px; }

/* needs attention */
.alerts { display: flex; flex-direction: column; gap: 9px; }
.alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0e0919;
  border: 1px solid var(--line);
  border-left: 2px solid var(--pink);
  border-radius: 7px;
  padding: 11px 15px;
}
.alert .body { min-width: 0; }
.alert .nm { font-size: 14px; font-weight: 600; letter-spacing: -0.008em; }
.alert .why { font-size: 12px; color: var(--pink); margin-top: 4px; }
.alert .meta { margin-left: auto; color: var(--text-faint); font-size: 12px; white-space: nowrap; }

/* team load */
.team { display: flex; flex-direction: column; gap: 3px; }
.member {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 0;
  font-size: 13.5px;
}
.member .chip {
  width: 21px; height: 21px;
  border-radius: 5px;
  background: #241a38;
  color: var(--text-faint);
  font-size: 8.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}
.member .nm { flex: 0 0 auto; min-width: 82px; }
.member .load {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 999px;
  background: #1c1430;
  overflow: hidden;
}
.member .load i { display: block; height: 100%; background: linear-gradient(90deg, #e0186f, var(--pink)); }
.member .n { color: var(--text-faint); font-size: 12px; flex: 0 0 auto; min-width: 14px; text-align: right; }

/* discipline cards */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
@media (max-width: 1100px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .disciplines { grid-template-columns: 1fr; } }

.disc { min-height: 168px; display: flex; flex-direction: column; }
.disc .top { display: flex; align-items: baseline; margin-bottom: 12px; }
.disc .top h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em; }
.disc .top .pct { margin-left: auto; font-size: 17px; font-weight: 600; color: var(--pink); letter-spacing: -0.02em; }
.disc .bar { height: 3px; flex: 0 0 auto; }
.disc .tally { margin-top: 11px; font-size: 12.5px; color: var(--text-faint); display: flex; gap: 14px; }
.disc .tally b { color: var(--text); font-weight: 600; margin-right: 4px; }
.disc .nobody { margin-top: 20px; color: #3b2f57; font-size: 12.5px; }

/* recent activity */
.activity { margin-top: var(--gap); min-height: 130px; }
.activity .none { color: #40335e; font-size: 13px; }



/* placeholder tab */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60vh;
  color: var(--text-faint);
  text-align: center;
}
.empty h2 { color: var(--text-dim); font-size: 16px; font-weight: 600; margin: 0; }
.empty p { margin: 0; font-size: 13.5px; max-width: 420px; line-height: 1.6; }

.hidden { display: none !important; }


/* ---------- canvas / node graph (optional) ---------- */

.canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  background-color: #090514;
  background-image: radial-gradient(circle, #241a38 1px, transparent 1px);
  background-size: 26px 26px;
}
.canvas.dragging { cursor: grabbing; }
.world { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.edges line { stroke: #52427a; stroke-width: 1; opacity: 0.85; }
.nodes { position: absolute; top: 0; left: 0; }

.node {
  position: absolute;
  width: 210px;
  background: #130d22;
  border: 1px solid #2c2048;
  border-radius: 9px;
  padding: 10px 12px;
  cursor: grab;
}
.node.progress { border-color: rgba(255, 46, 136, 0.55); }
.node.hub { width: 190px; background: #17102c; border-color: #3a2a5c; }
.node.dim { opacity: 0.16; }
.node.hit { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, 0.22); }

/* ---------- small utilities ---------- */

.iconbtn {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-dim);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.iconbtn:hover { border-color: #3d2f5e; color: var(--text); background: #17102c; }

.field {
  background: #0b0716;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.field::placeholder { color: #574a75; }
.field:focus { border-color: rgba(255, 46, 136, 0.5); }

.eyebrow {
  color: var(--text-faint);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hidden { display: none !important; }

/* ============================================================
   Hub — auth gate, game picker, admin, task sheet
   ============================================================ */

/* ---------- gate ---------- */

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

/* The bedroom header art, same file and same handling as the eta.games hero:
   sharp, full bleed, no blur.

   The zoom is set by the shape of the box it fills, not by any scaling here.
   The art is a 2.06:1 cinematic frame, so the box is held at 48.5vw tall to
   match it exactly — nothing is cropped at any desktop width, and the top and
   bottom edges dissolve into the page rather than being cut off. */
.gate::before {
  content: "";
  position: absolute;
  left: -3%;                        /* room to drift without exposing an edge */
  right: -3%;
  top: 50%;
  translate: 0 -50%;
  height: min(106%, 48.5vw);
  z-index: -2;
  background: url("covers/login-bg.jpg") 50% 50% / cover no-repeat;
  animation: roomdrift 52s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}

/* The "half dark" wash from the site: the left side falls away to near black so
   the headline and the form sit on it cleanly, and the room stays bright on the
   right. Second layer is a light overall dim, third settles the bottom edge. */
.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(7, 4, 14, 0.90) 0%,
      rgba(7, 4, 14, 0.78) 18%,
      rgba(7, 4, 14, 0.48) 36%,
      rgba(7, 4, 14, 0.18) 55%,
      rgba(7, 4, 14, 0.04) 76%,
      rgba(7, 4, 14, 0.00) 100%),
    linear-gradient(to bottom,
      rgba(11, 7, 22, 0.60) 0%,
      rgba(11, 7, 22, 0.12) 13%,
      rgba(11, 7, 22, 0.02) 42%,
      rgba(11, 7, 22, 0.06) 72%,
      rgba(11, 7, 22, 0.22) 90%,
      rgba(11, 7, 22, 0.62) 100%);
}

/* ---------- gate hero (mirrors the eta.games headline block) ---------- */

.gate-inner {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-left: clamp(20px, 7vw, 118px);
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.94;
  display: flex;
  flex-direction: column;
}
/* The real ETA mark, sized by height so it lines up with GAMES underneath
   whatever the viewport. Width auto keeps its own proportions. */
.hero-mark {
  display: block;
  align-self: flex-start;   /* a column flex child would otherwise stretch and distort it */
  height: clamp(42px, 5.2vw, 70px);
  width: auto;
  margin: 0 0 10px 3px;
  filter: drop-shadow(0 2px 22px rgba(255, 255, 255, 0.22));
}
.hero-line-b {
  font-size: clamp(56px, 7.6vw, 104px);
  letter-spacing: 0.01em;
  margin-top: 2px;
  background: linear-gradient(180deg, #ff7ab8 0%, #ff3d94 46%, #e8006b 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 46, 136, 0.55))
          drop-shadow(0 0 62px rgba(255, 46, 136, 0.3));
}
.hero-sub {
  margin: 0 0 30px;
  max-width: 30ch;
  color: #cfc6de;
  font-size: 15px;
  line-height: 1.6;
}

@keyframes roomdrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

/* The art band keeps the artwork's own 2.06:1 shape at every desktop width, so
   there is no crop to re-tune per breakpoint. */

/* Portrait is the hard case: filling a tall screen with a 3:1 banner would crop
   to a sliver of it and blow that sliver up. So stop covering — show the art as
   a band across the top at a sane scale, fade it into the page, and run the
   headline and form underneath it. */
@media (max-width: 760px) {
  .gate { align-items: flex-end; padding: 24px 22px 5vh; }
  .gate-inner { margin-left: 0; }
  .gate::before {
    left: 0; right: 0; top: 0;
    translate: none;
    height: 38vh;
    background-size: cover;
    background-position: 52% 42%;
    animation: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%);
  }
  .gate::after {
    background: linear-gradient(to bottom, rgba(11, 7, 22, 0.34), rgba(11, 7, 22, 0.22) 18%, var(--bg) 46%);
  }
  .hero-title { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 22px; font-size: 14px; }
}
/* The form sits straight on the dark side of the art, the way the site's
   paragraph and button do — no card chrome to compete with the headline. */
.gate-card {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.gate-form h1 { font-size: 21px; font-weight: 700; margin: 0 0 18px; letter-spacing: -0.02em; }
.gate-sub  { color: var(--text-dim); font-size: 13.5px; margin: 0 0 22px; line-height: 1.5; }
.gate-note { color: var(--text-faint); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }

.gate-form label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.gate-form .field {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  font-size: 14px;
  background: rgba(10, 6, 20, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(94, 72, 140, 0.55);
}

/* solid pink, like VIEW GAMES on the site */
.gate-cta {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff4d9c, #ec0f72);
  box-shadow: 0 10px 30px rgba(255, 46, 136, 0.34);
}
.gate-cta:hover {
  background: linear-gradient(180deg, #ff63a9, #ff1b7e);
  box-shadow: 0 12px 36px rgba(255, 46, 136, 0.46);
}
.gate-alt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.linkbtn { color: var(--text-dim); font-size: 12.5px; padding: 0; }
.linkbtn:hover { color: var(--pink); }

.gate-msg { font-size: 12.5px; line-height: 1.5; margin: 2px 0 14px; min-height: 0; }
.gate-msg.err { color: #ff6b9d; }
.gate-msg.ok  { color: var(--text-dim); }
.gate-msg:empty { margin: 0; }

.demo-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.6;
}
.demo-note b { color: var(--text-dim); font-weight: 600; }

/* ---------- topbar extras ---------- */

.rolechip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: capitalize;
}
.rolechip.owner { border-color: rgba(255, 46, 136, 0.5); color: var(--pink-soft); }
button.backlink { padding: 0; }

/* ---------- development portal ---------- */

.portal-scroll { padding-top: 0; }

.portal {
  max-width: 1640px;
  margin: 0 auto;
  padding: 28px 4px 40px;
}

.portal-head { margin-bottom: 26px; }

.portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.portal-eyebrow i {
  width: 28px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  display: block;
}

.portal-title { display: flex; align-items: center; gap: 16px; }
.portal-title h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
}
.covers-btn { margin-left: auto; }
.portal-title .rowbtn + .rowbtn { margin-left: 8px; }

.portal-sub { color: var(--text-dim); font-size: 14px; margin: 8px 0 0; }

.portal-foot {
  margin: 26px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}
.portal-foot b { color: var(--pink-soft); font-weight: 600; }

/* ---------- game cards ---------- */

.gamegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1300px) { .gamegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .gamegrid { grid-template-columns: 1fr; } }

.gamecard {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  will-change: transform;
  transition:
    border-color 0.45s var(--ease),
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

.gamecard .art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(150deg, #241640, #0d0820);
}
.gamecard .art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  will-change: transform;
  transition:
    transform 0.9s var(--ease),
    filter 0.5s var(--ease),
    opacity 0.6s var(--ease);
}
.gamecard .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,7,22,0) 42%, rgba(11,7,22,0.74) 76%, rgba(11,7,22,0.95) 100%);
  pointer-events: none;
}
.gamecard .noart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e2348;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gamecard .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 18px 16px;
  z-index: 2;
}
.gamecard .stage {
  display: inline-block;
  background: rgba(255, 46, 136, 0.9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.gamecard .overlay h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.gamecard .kind {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  background: rgba(11,7,22,0.55);
  border-radius: 4px;
  padding: 3px 7px;
  backdrop-filter: blur(4px);
}

.gamecard .meter { padding: 15px 18px 0; }
.gamecard .meter .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}
.gamecard .meter .lab {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.gamecard .meter .pct { font-size: 19px; font-weight: 600; color: var(--pink); letter-spacing: -0.02em; }
.gamecard .bar { height: 3px; flex: 0 0 auto; }
.bar.anim > span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  transition: transform 1.1s var(--ease);
}

.gamecard .foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.gamecard .go {
  margin-left: auto;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  transition:
    border-color 0.4s var(--ease),
    color 0.4s var(--ease),
    transform 0.5s var(--ease),
    background 0.4s var(--ease);
}

/* hover */
.gamecard:not(.locked):hover {
  border-color: rgba(255, 46, 136, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 46, 136, 0.10);
}
.gamecard:not(.locked):hover .art > img { transform: scale(1.06); }
.gamecard:not(.locked):hover .go {
  border-color: var(--pink);
  background: rgba(255, 46, 136, 0.14);
  color: var(--pink-soft);
  transform: translateX(2px);
}
.gamecard:not(.locked):active {
  transform: translateY(-2px) scale(0.994);
  transition-duration: 0.12s;
}

/* locked */
.gamecard.locked { cursor: default; }
.gamecard.locked .art > img { filter: grayscale(1) brightness(0.42); }
.gamecard.locked .stage { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.6); }
.gamecard.locked .overlay h3 { color: rgba(255,255,255,0.65); }
.gamecard.locked .meter .pct { color: var(--text-faint); }
.lockrow { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; }
.lockrow svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* ---------- cover art editor ---------- */

.coverlist { display: flex; flex-direction: column; gap: 14px; }
.coverrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.coverrow:last-child { border-bottom: 0; padding-bottom: 0; }
.coverthumb {
  width: 58px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0820;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.coverthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coverfields { flex: 1 1 auto; min-width: 0; }
.coverfields .nm { font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.coverfields .field, .coverfields .selectfield { width: 100%; margin-bottom: 8px; }
.coverbtns { display: flex; gap: 8px; align-items: center; }
.coverbtns .rowbtn { padding: 5px 11px; font-size: 12px; }
.filebtn { position: relative; overflow: hidden; display: inline-block; }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }


/* ---------- admin ---------- */

.adminwrap { display: flex; flex-direction: column; gap: var(--gap); padding-top: 4px; }

.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  font-weight: 500;
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--line);
}
.ptable td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .email { color: var(--text-faint); font-size: 12px; }

.namefield {
  background: #0b0716;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  width: 150px;
  outline: none;
}
.namefield:focus { border-color: rgba(255, 46, 136, 0.5); }

.selectfield {
  background: #0b0716;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}
.selectfield:focus { border-color: rgba(255, 46, 136, 0.5); }

.gametoggles { display: flex; gap: 6px; flex-wrap: wrap; }
.gtoggle {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-faint);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gtoggle:hover { border-color: #3d2f5e; color: var(--text-dim); }
.gtoggle.on { border-color: var(--pink); background: rgba(255, 46, 136, 0.12); color: var(--pink-soft); }

.statuspill { font-size: 11.5px; padding: 2.5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }
.statuspill.pending { border-color: rgba(255, 46, 136, 0.55); background: rgba(255, 46, 136, 0.14); color: #ff9ec5; }
.statuspill.suspended { color: var(--text-faint); }

.rowbtn {
  border: 1px solid var(--pink);
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 12.5px;
  transition: background 0.15s;
}
.rowbtn:hover { background: rgba(255, 46, 136, 0.12); }
.rowbtn.quiet { border-color: var(--line); color: var(--text-dim); }
.rowbtn.quiet:hover { border-color: #3d2f5e; background: #17102c; color: var(--text); }

/* ---------- task sheet ---------- */

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 14, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.sheet-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em; flex: 1 1 auto; }
.sheet-body { padding: 20px; overflow-y: auto; }
.sheet-body label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.sheet-body .field, .sheet-body .selectfield { display: block; width: 100%; margin-top: 7px; }
.sheet-row { display: flex; gap: 12px; }
.sheet-row > label { flex: 1 1 0; }
.sheet-foot { display: flex; gap: 10px; margin-top: 6px; }
.sheet-foot .cta { margin-left: 0; flex: 1 1 auto; text-align: center; }
.sheet-note { color: var(--text-faint); font-size: 12px; line-height: 1.6; margin: 0 0 18px; }

.statuspick { display: flex; gap: 8px; margin-top: 7px; }
.statuspick button {
  flex: 1 1 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.statuspick button:hover { border-color: #3d2f5e; color: var(--text); }
.statuspick button.on { border-color: var(--pink); background: rgba(255, 46, 136, 0.12); color: #ff9ec5; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #17102c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 13px;
  z-index: 60;
}
.toast.err { border-color: rgba(255, 46, 136, 0.5); color: #ff9ec5; }

/* ---------- misc ---------- */

.card.editable { cursor: pointer; }
.card.readonly { cursor: default; }
.mapsearch { margin-left: auto; width: 200px; }
.zoomval { color: var(--text-dim); font-size: 12.5px; min-width: 40px; text-align: center; flex: 0 0 auto; }
.mine { border-color: rgba(255, 46, 136, 0.3); }

/* ---------- task map chrome ---------- */

.mapwrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 8px 4px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #080413;
}

.maptools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #0e0919;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.maptools::-webkit-scrollbar { display: none; }

.maptitle { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; margin-right: 6px; white-space: nowrap; }

.mapchips { display: flex; gap: 4px; flex: 0 0 auto; }
.mapchip {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.mapchip:hover { background: #191130; color: var(--text); }
.mapchip.active { background: rgba(255, 46, 136, 0.16); color: var(--pink); }

.maphint { color: var(--text-faint); font-size: 12.5px; margin-left: 8px; white-space: nowrap; }

.node .nb {
  font-size: 9.5px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.node .nb .dotmark { width: 5px; height: 5px; border-radius: 50%; background: #453764; }
.node.progress .nb { color: #ff9ec5; }
.node.progress .nb .dotmark { background: var(--pink); }
.node.done .nb { color: rgba(255, 91, 161, 0.8); }
.node.done .nb .dotmark { background: var(--pink); }
.node.notstarted .nb { color: #8b8b93; }
.node .nt { font-size: 11px; font-weight: 500; line-height: 1.3; margin-bottom: 9px; }
.node.done .nt { color: var(--text-done); text-decoration: line-through; }
.node.hub .nt { font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; }
.node .nbar { height: 2px; border-radius: 999px; background: #241a3a; overflow: hidden; margin-bottom: 9px; }
.node .nbar i { display: block; height: 100%; background: linear-gradient(90deg, #e0186f, var(--pink)); }
.node .nf { font-size: 9px; color: #4a3a6b; display: flex; justify-content: space-between; gap: 8px; }

.canvas-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(12, 12, 15, 0.86);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12px;
  color: var(--text-faint);
  pointer-events: none;
}
.allgames { font-size: 12px; color: var(--text-faint); }


/* ---------- game logo on the card ---------- */

.gamecard .gamelogo {
  display: block;
  max-width: 72%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.65));
  transition: transform 0.6s var(--ease);
}
.gamecard:not(.locked):hover .gamelogo { transform: translateY(-2px); }
.gamecard.locked .gamelogo { filter: grayscale(1) brightness(0.7) drop-shadow(0 3px 10px rgba(0,0,0,.6)); opacity: 0.75; }

/* ============================================================
   Motion
   Compositor-only properties, one shared easing curve, and a
   single switch that removes the lot for anyone who asks.
   ============================================================ */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);      /* expo out — long, soft tail */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes viewin {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheetin {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes toastin {
  from { opacity: 0; transform: translate3d(-50%, 14px, 0); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

/* artwork arrives instead of snapping */
.gamecard .art > img.loaded { opacity: 1; }

/* cards and panels entering */
.rise { animation: rise 0.85s var(--ease) backwards; }

#view-overview:not(.hidden) .ov-top > *,
#view-overview:not(.hidden) .disciplines > *,
#view-overview:not(.hidden) .activity {
  animation: rise 0.75s var(--ease) backwards;
}
#view-overview:not(.hidden) .ov-top > *:nth-child(2)      { animation-delay: 70ms; }
#view-overview:not(.hidden) .ov-top > *:nth-child(3)      { animation-delay: 140ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(1) { animation-delay: 170ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(2) { animation-delay: 215ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(3) { animation-delay: 260ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(4) { animation-delay: 305ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(5) { animation-delay: 350ms; }
#view-overview:not(.hidden) .disciplines > *:nth-child(6) { animation-delay: 395ms; }
#view-overview:not(.hidden) .activity                     { animation-delay: 440ms; }

/* whole views crossfading */
#view-games:not(.hidden) .portal-head,
#view-tasks:not(.hidden) .filters,
#view-tasks:not(.hidden) .section-head,
#view-tasks:not(.hidden) .grid,
#view-admin:not(.hidden) .adminwrap,
#view-map:not(.hidden) .mapwrap { animation: viewin 0.55s var(--ease) backwards; }

#view-games:not(.hidden) .portal-foot { animation: fadein 0.9s var(--ease) 0.35s backwards; }
#view-tasks:not(.hidden) .grid { animation-delay: 60ms; }

/* the gate — headline lands first, form follows it in */
.hero-title    { animation: rise 0.9s var(--ease) backwards; }
.hero-sub      { animation: rise 0.9s var(--ease) 0.10s backwards; }
.gate-card     { animation: rise 0.9s var(--ease) 0.18s backwards; }
.gate-form     { animation: fadein 0.45s var(--ease) backwards; }

/* overlays */
.sheet { animation: fadein 0.25s var(--ease-soft) backwards; }
.sheet-card { animation: sheetin 0.5s var(--ease) backwards; }
.toast { animation: toastin 0.45s var(--ease) backwards; }

/* meters and loads glide */
.panel .bar > span,
.member .load > i,
.disc .bar > span,
.stack i { transition: width 1.1s var(--ease); }

/* task cards */
.card {
  will-change: transform;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.card.editable:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}
.card.editable:active { transform: translateY(-1px) scale(0.996); transition-duration: 0.1s; }

/* chrome */
.tab { transition: color 0.3s var(--ease), border-color 0.4s var(--ease); }
.pill,
.gtoggle,
.mapchip,
.rowbtn,
.cta,
.iconbtn,
.linkbtn,
.gamecard .go { transition: all 0.35s var(--ease); }
.cta:hover, .rowbtn:hover { transform: translateY(-1px); }
.cta:active, .rowbtn:active { transform: translateY(0); transition-duration: 0.1s; }

/* nodes on the task map */
.node { transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease); }

/* anyone who asks for less motion gets none of it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .gamecard .art > img { opacity: 1; }
  .bar.anim > span { transform: scaleX(var(--fill, 1)); }
  .gamecard:not(.locked):hover,
  .card.editable:hover { transform: none; }
}

/* ============================================================
   Scroll reveal and pointer response
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.95s var(--ease) var(--reveal-delay, 0ms);
}

/* a card that reveals should not also run its own entrance animation */
.gamecard.reveal { animation: none; }

/* pointer tilt */
.gamecard {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
}
.gamecard:not(.locked) {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
}
.gamecard:not(.locked):hover {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
}
.gamecard:not(.locked):active {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-2px) scale(0.994);
}

/* artwork drifts against the cursor, which reads as depth */
.gamecard .art > img {
  transform: var(--drift, none);
  transition:
    transform 0.75s var(--ease),
    filter 0.5s var(--ease),
    opacity 0.6s var(--ease);
}
.gamecard:not(.locked):hover .art > img {
  transform: var(--drift, none) scale(1.06);
  transition-duration: 0.9s, 0.5s, 0.6s;
}

/* a soft light follows the cursor across the card */
.gamecard .art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.10), transparent 62%);
  transition: opacity 0.5s var(--ease);
}
.gamecard:not(.locked):hover .art::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .gamecard:not(.locked),
  .gamecard:not(.locked):hover,
  .gamecard:not(.locked):active { transform: none; }
  .gamecard .art > img { transform: none; }
  .gamecard .art::before { display: none; }
}


/* ============================================================
   Typography — display voice from eta.games
   Orbitron is wide, so anything set in it wants tighter tracking
   and a slightly smaller size than the same text in Poppins.
   ============================================================ */

.portal-title h1,
.pagehead h1,
.ov-head h1,
.gate-form h1,
.section-head h2,
.panel-head h3,
.disc .top h3,
.game .title h3,
.maptitle,
.gamecard .overlay h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.portal-title h1 { font-size: 27px; font-weight: 800; letter-spacing: 0.002em; }
.pagehead h1,
.ov-head h1     { font-size: 24px; font-weight: 800; }
.gate-form h1   { font-size: 19px; font-weight: 700; }
.section-head h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.panel-head h3,
.disc .top h3   { font-size: 14px; font-weight: 700; letter-spacing: 0.015em; text-transform: uppercase; }
.game .title h3 { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }
.maptitle       { font-size: 13.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.gamecard .overlay h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.015em; text-transform: uppercase; }

/* uppercase labels take the display face too */
.eyebrow,
.portal-eyebrow,
.gamecard .stage,
.gamecard .meter .lab,
.tile .k,
.ptable th {
  font-family: var(--font-display);
  font-weight: 600;
}

/* figures read as data, so they stay in the display face but tight */
.gamecard .meter .pct,
.game .pct,
.disc .top .pct,
.quad .box b,
.tile .v,
.donut .mid b {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* dense metadata stays in Inter — Poppins and Orbitron both get
   loose and hard to scan at 11px across hundreds of cards */
.card-foot,
.count,
.section-head .meta,
.pill .n,
.member .n,
.node,
.zoomval,
.ptable .email,
.alert .meta,
.disc .tally,
.gamecard .foot {
  font-family: var(--font-ui);
}

/* Poppins sits a touch lower than Inter, so the card titles need
   a hair more line-height to keep two-line titles even */
.card h3 { font-family: var(--font-body); font-weight: 500; line-height: 1.4; }

/* ============================================================
   Game card entrance
   ------------------------------------------------------------
   The tilt lives on .gamecard, so the reveal has to live on a
   wrapper — otherwise the tilt's transform wins on specificity
   and the card fades without ever moving.
   ============================================================ */

.gamecard-wrap { display: block; min-width: 0; }
.gamecard-wrap > .gamecard { width: 100%; }

/* every card gets the same choreography, whether or not it has data */
.gamecard-wrap.reveal .art > img { transform: scale(1.07); }
.gamecard-wrap.reveal.in .art > img {
  transform: var(--drift, none);
  transition: transform 1.25s var(--ease) var(--reveal-delay, 0ms);
}

.gamecard-wrap.reveal .overlay .stage,
.gamecard-wrap.reveal .overlay h3,
.gamecard-wrap.reveal .overlay .gamelogo {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.gamecard-wrap.reveal.in .overlay .stage,
.gamecard-wrap.reveal.in .overlay h3,
.gamecard-wrap.reveal.in .overlay .gamelogo {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease) calc(var(--reveal-delay, 0ms) + 220ms),
    transform 0.8s var(--ease) calc(var(--reveal-delay, 0ms) + 220ms);
}
.gamecard-wrap.reveal.in .overlay h3,
.gamecard-wrap.reveal.in .overlay .gamelogo {
  transition-delay: calc(var(--reveal-delay, 0ms) + 300ms);
}

/* a game with nothing in it still gets a moment — one quiet sweep
   along the empty track, so the row is not simply dead */
.gamecard.empty-meter .bar { position: relative; overflow: hidden; }
.gamecard.empty-meter .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 46, 136, 0.55), transparent);
}
.gamecard-wrap.reveal.in .gamecard.empty-meter .bar::after {
  animation: sweep 1.5s var(--ease) calc(var(--reveal-delay, 0ms) + 420ms) both;
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .gamecard-wrap.reveal .art > img,
  .gamecard-wrap.reveal .overlay .stage,
  .gamecard-wrap.reveal .overlay h3,
  .gamecard-wrap.reveal .overlay .gamelogo { opacity: 1; transform: none; }
  .gamecard.empty-meter .bar::after { animation: none; display: none; }
}
.importeg {
  background: #0e0919;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-dim);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  white-space: pre;
  overflow-x: auto;
  margin: 0 0 18px;
}
.imparea { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; line-height: 1.6; resize: vertical; }

/* import panel — two numbered steps, so the Trello route reads as the main
   one and the paste box reads as the review stage rather than a rival input */
.impstep { margin-bottom: 26px; }
.impstep + .impstep { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.impstep-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.impstep-n {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: rgba(255, 46, 136, 0.15);
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 700;
}
.impmap {
  border-collapse: collapse;
  margin: 12px 0 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.impmap td { padding: 3px 0; vertical-align: top; }
.impmap td:nth-child(2) { padding: 3px 10px; color: var(--text-faint); }
.impmap td:last-child { color: var(--text); }
.impmap code {
  background: #0e0919;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}
.imphelp { margin: 4px 0 16px; }
.imphelp summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 0;
  list-style: none;
}
.imphelp summary::-webkit-details-marker { display: none; }
.imphelp summary::before { content: "▸ "; color: var(--text-faint); }
.imphelp[open] summary::before { content: "▾ "; }
.imphelp summary:hover { color: var(--text); }
.impsummary { font-size: 12.5px; color: var(--text-dim); margin: 4px 0 18px; }
.impsummary b { color: var(--pink); }
.impskip { color: var(--text-faint); font-size: 12px; margin-top: 6px; }
.impskip b { color: var(--text-dim); }
.impwarn {
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 138, 61, 0.4);
  background: rgba(255, 138, 61, 0.08);
  border-radius: 7px;
  color: #ffcc9e;
  font-size: 12px;
  line-height: 1.5;
}
.impwarn b { color: #ffd9bb; }
.impdupe { display: block; margin: 16px 0 10px; }

/* a game with no artwork yet */
.gamecard .noart {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(103, 38, 158, 0.32), transparent 70%),
    linear-gradient(160deg, #1a1230, #0d0820);
  color: #4a3a6b;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.gamecard .noart + .kind + .overlay .gamelogo,
.gamecard:not(:has(.art > img)) .gamelogo { filter: drop-shadow(0 3px 14px rgba(0,0,0,.8)); }
.trellobar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.trellofall { font-size: 12px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.trellofall .selectfield { width: auto; margin: 0; padding: 5px 8px; }
.impreport {
  background: #0e0919;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.impreport b { color: var(--pink); }
.impreport .warn { color: #ff9ec5; }
.impreport .implists { color: var(--text-faint); font-size: 11.5px; margin-top: 6px; }
.sheet-note.tiny { font-size: 11.5px; margin-bottom: 14px; }
.sheet-note code { background: #0e0919; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 11px; }
.improute { margin-top: 6px; color: var(--text-faint); font-size: 12px; }
.improute b { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  .gate::before { animation: none; }
}
