:root {
  --bg: #000000;
  --bg2: #1a1a1a;
  --card: #141414;
  --teal: #ff5208;
  --gold: #ff8f00;
  --text: #ffffff;
  --muted: #a8a8a8;
  --line: rgba(255, 255, 255, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Space Grotesk", system-ui, sans-serif;
}
h1, h2, h3, .eyebrow, .btn, nav a { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .03em; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 44px; display: block; }
nav { display: flex; gap: 20px; }
nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 600; }
nav a:hover { color: var(--teal); }

.hero {
  text-align: center;
  padding: 80px 24px 64px;
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 70%);
}
.eyebrow { color: var(--gold); font-weight: 700; margin: 0 0 8px; font-size: 1.1rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: .95; margin: 0 0 16px; font-weight: 800; }
.hero h1 span { color: var(--teal); }
.lead { max-width: 560px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.stats div { min-width: 120px; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.stats b { display: block; font: 800 1.9rem "Space Grotesk", sans-serif; color: var(--gold); }
.stats span { color: var(--muted); font-size: .85rem; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: var(--teal); color: #000; font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 56px 24px 8px; }
.wrap h2 { font-size: 2.4rem; margin: 0 0 4px; }
.note { color: var(--muted); margin: 0 0 24px; font-size: .9rem; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.controls input, .controls select {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font: inherit;
}
.controls input { flex: 1 1 260px; }
.controls input:focus, .controls select:focus { outline: 2px solid var(--teal); }

.empty { text-align: center; color: var(--muted); padding: 32px; }
.title { font-size: clamp(1.4rem, 5vw, 2.4rem); margin: 0; font-weight: 700; line-height: 1; text-align: right; }
.title span { color: var(--teal); }
.count { color: var(--muted); font-size: .9rem; align-self: center; }
.wrap, .wrap#top { max-width: none; width: 100%; padding: 24px clamp(12px, 3vw, 40px) 8px; }
footer { text-align: center; color: var(--muted); padding: 48px 24px; font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(180px, calc((100% - 5 * 16px) / 6)), 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.photo {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d);
  color: rgba(255, 255, 255, .18); font: 700 4rem "Space Grotesk", sans-serif;
}
.badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .85); font: 600 .8rem ui-monospace, "SF Mono", Menlo, monospace;
}
.info { padding: 12px 14px 14px; }
.info h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; text-transform: none; letter-spacing: 0; font-weight: 700; }
.role { margin: 3px 0 6px; color: var(--gold); font: 600 .72rem ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.info p { margin: 0; color: #d6d6d6; font-size: .82rem; }
.mono { margin-top: 6px !important; color: var(--muted) !important; font: .72rem ui-monospace, "SF Mono", Menlo, monospace !important; }

@media (max-width: 640px) {
  .brand img { height: 34px; }
  .controls { gap: 8px; }
  .controls input { flex: 1 1 100%; }
  .controls select { flex: 1 1 0; min-width: 0; }
  .count { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo { font-size: 2.6rem; }
  .badge { top: 6px; right: 6px; font-size: .68rem; padding: 2px 6px; }
  .info { padding: 8px 10px 10px; }
  .info h3 { font-size: .88rem; }
  .role { font-size: .62rem; }
  .info p { font-size: .72rem; }
  .mono { font-size: .64rem !important; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }

/* navigation links */
.team-logo { height: 44px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); margin-right: auto; }
.team-logo[hidden] { display: none; }
.links { display: none; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.links a:hover { color: var(--text); }
.links a.on { background: var(--teal); color: #000; }
@media (max-width: 640px) { .team-logo { height: 34px; margin-left: 8px; padding-left: 8px; } }

/* team pages */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, calc((100% - 3 * 16px) / 4)), 1fr)); gap: 16px; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
.team-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.team-card img { width: 100%; max-width: 150px; height: 150px; object-fit: contain; margin-bottom: 12px; }
.team-card h3 { margin: 0; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.team-card span { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.team-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.team-head img { width: 110px; height: 110px; object-fit: contain; }
.team-head h2 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.6rem); }
.team-head p { margin: 4px 0 0; color: var(--muted); }
.sub { margin: 24px 0 12px; font-size: 1.1rem; color: var(--gold); }
.back { margin-top: 32px; }
.back a, .empty a { color: var(--teal); }
.card.owner { border-color: var(--gold); }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .team-card img { height: 110px; } .team-head img { width: 72px; height: 72px; } }

/* team board */
.board-wrap { min-height: calc(100vh - 70px); display: flex; width: 100%; padding: 16px clamp(8px, 1.5vw, 24px) 32px; overflow-x: auto; }
.board { flex: 1; display: grid; grid-template-columns: repeat(8, minmax(150px, 1fr)); gap: 8px; min-width: 1240px; align-items: start; }
.col { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.col header { text-align: center; padding: 12px 8px; border-bottom: 2px solid var(--teal); background: #0c0c0c; position: sticky; top: 0; }
.col header img { height: 80px; max-width: 100%; object-fit: contain; }
.col header h3 { margin: 6px 0 0; font-size: .8rem; text-transform: none; letter-spacing: 0; }
.col ol { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row img, .row .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.row .ph { display: grid; place-items: center; background: linear-gradient(160deg, #2a2a2a, #0d0d0d); color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 700; }
.row .nm { font-size: .8rem; line-height: 1.2; }
.row.owner .nm { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .board-wrap { padding: 8px; } }
.board { align-items: stretch; }
.col { display: flex; flex-direction: column; }
.col ol { flex: 1; display: grid; grid-template-rows: repeat(var(--slots), minmax(48px, 1fr)); }
.row { border-bottom: 1px solid var(--line); }
.row.empty { opacity: .35; }
.row.empty .ph { background: none; border: 1px dashed rgba(255,255,255,.4); }
