/* Nebius Physical AI Competition – concept mock.
   Brand system rebuilt from live nebius.com: lime #E0FF4F accent, warm near-black dark
   surfaces, Inter (body) + Space Mono (technical) self-hosted, Hanken Grotesk for display
   (an open substitute for the paid brand face Gramatika). No external CDN at render time. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/hanken.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/spacemono-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/spacemono-700.woff2') format('woff2'); }

:root {
  --nb-lime: #e0ff4f;
  --nb-lime-dark: #cbe93a;
  --nb-lime-tint: #eaff85;
  --nb-violet: #5d52f6;
  --nb-violet-hover: #6f65f8;
  --nb-blue: #027bf3;
  --nb-navy: #052b42;          /* the logo wordmark ink */

  --nb-ink: #0c0c0e;           /* deepest dark surface */
  --nb-ink-2: #17161a;         /* dark panels / cards on dark */
  --nb-bg: #ffffff;
  --nb-silver: #eff2f8;        /* cool light surface */
  --nb-silver-2: #f6f7fb;
  --nb-grey: #f2f2f2;

  --nb-text: #18191c;          /* near-black body text */
  --nb-text-muted: #6a6f77;
  --nb-text-faint: #9aa0a9;
  --nb-border: #e6e7ea;
  --nb-border-strong: #d6d8dc;
  --nb-up: #24a13a;
  --nb-down: #e5352f;

  --nb-mint: #d6f5dd;
  --nb-sky: #dbe9ff;
  --nb-lilac: #e9e6ff;
  --nb-copper: #ffedcf;

  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --r-card: 24px;
  --r-block: 16px;
  --r-ctrl: 12px;
  --r-pill: 999px;

  --shadow-card: 0 10px 30px rgba(12, 12, 14, .07);
  --shadow-soft: 0 2px 8px rgba(12, 12, 14, .06);
  --ring: 0 0 0 3px rgba(93, 82, 246, .28);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--nb-text);
  background: var(--nb-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--nb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--nb-text-muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nb-violet);
}
.divider { height: 1px; background: var(--nb-border); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--nb-lime); color: var(--nb-navy); }
.btn-primary:hover { background: var(--nb-lime-tint); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(203, 233, 58, .38); }
.btn-dark { background: var(--nb-ink); color: #fff; }
.btn-dark:hover { background: #26242b; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--nb-text); border-color: var(--nb-border-strong); }
.btn-outline:hover { background: var(--nb-silver); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- top nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 25px; width: auto; display: block; }
.brand .b-div { width: 1px; height: 20px; background: currentColor; opacity: .22; }
.brand .b-sub { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: inherit; opacity: .82; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links .btn { opacity: 1; }
.nav-links .btn-primary { color: var(--nb-navy); }
.concept-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); border: 1px dashed currentColor; opacity: .7;
}
.concept-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.nav--dark { color: #fff; background: var(--nb-ink); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav--dark .concept-badge { color: rgba(255,255,255,.8); }
.nav--light { color: var(--nb-text); background: #fff; border-bottom: 1px solid var(--nb-border); }
.nav--light .concept-badge { color: var(--nb-text-muted); }

/* ---------- hero ---------- */
.hero {
  background: var(--nb-ink);
  background-image:
    radial-gradient(120% 92% at 86% -12%, rgba(93,82,246,.42), transparent 55%),
    radial-gradient(80% 60% at 6% 4%, rgba(224,255,79,.10), transparent 52%);
  color: #fff; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(90% 80% at 70% 0%, #000, transparent 75%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 54px 24px 64px; position: relative; z-index: 1; }
.hero .eyebrow { color: var(--nb-lime); }
.hero-title { font-family: var(--font-display); font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; margin: 16px 0 0; max-width: 17ch; letter-spacing: -0.025em; }
.hero-highlight { color: var(--nb-lime); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.8); max-width: 62ch; margin: 18px 0 0; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero-cta-note { font-size: 13px; color: rgba(255,255,255,.58); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.stat { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-block); padding: 16px 20px; min-width: 158px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.stat-num.lime { color: var(--nb-lime); }
.stat-label { font-size: 12.5px; color: rgba(255,255,255,.68); margin-top: 8px; }

/* ---------- timeline strip ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; }
.tl-step { position: relative; padding: 18px 22px 4px 0; }
.tl-step + .tl-step { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.14); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--nb-lime); display: inline-block; margin-right: 8px; }
.tl-step:nth-child(2) .tl-dot { background: rgba(255,255,255,.5); }
.tl-step:nth-child(3) .tl-dot { background: var(--nb-violet); box-shadow: 0 0 0 3px rgba(93,82,246,.32); }
.tl-phase { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tl-when { font-family: var(--font-mono); font-size: 12px; color: var(--nb-lime); margin: 3px 0 6px; font-weight: 700; }
.tl-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.45; }

/* ---------- section scaffolding ---------- */
.section { padding-block: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3vw, 33px); letter-spacing: -.02em; }
.section-head p { margin: 8px 0 0; color: var(--nb-text-muted); max-width: 62ch; }

/* ---------- phase toggle ---------- */
.board-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.phase-toggle { display: inline-flex; background: var(--nb-silver); border: 1px solid var(--nb-border); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.phase-opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--nb-text-muted);
  padding: 9px 18px; border-radius: var(--r-pill); border: 0; background: transparent;
  transition: background .15s ease, color .15s ease; font-family: var(--font-body);
}
.phase-opt:hover { color: var(--nb-text); }
.phase-opt.active { background: #fff; color: var(--nb-text); box-shadow: var(--shadow-soft); }
.phase-opt .sub { font-weight: 500; color: var(--nb-text-faint); font-size: 12px; }
.phase-opt.active .sub { color: var(--nb-text-muted); }
/* Track filter: a lighter, secondary lens next to the primary phase toggle. */
.board-controls-left { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.track-filter { display: inline-flex; align-items: center; gap: 3px; }
.track-filter-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-text-faint); margin-right: 4px; }
.track-opt { font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--nb-text-faint); background: transparent; border: 1px solid transparent; border-radius: var(--r-pill); padding: 5px 11px; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.track-opt:hover { color: var(--nb-text-muted); }
.track-opt.active { color: var(--nb-text); border-color: var(--nb-border-strong); background: var(--nb-silver); }
.countdown { font-size: 13px; color: var(--nb-text-muted); }
.countdown b { color: var(--nb-text); font-family: var(--font-mono); }

/* ---------- leaderboard ---------- */
.board-wrap { overflow-x: auto; border: 1px solid var(--nb-border); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-card); }
table.board { width: 100%; border-collapse: collapse; min-width: 720px; }
.board thead th {
  text-align: right; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--nb-text-muted); padding: 16px 14px 12px; border-bottom: 1px solid var(--nb-border);
  white-space: nowrap; position: sticky; top: 0; background: #fff; z-index: 1;
}
.board thead th.l { text-align: left; }
.board thead th .th-sub { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--nb-text-faint); font-size: 10px; margin-top: 2px; }
.board tbody td { padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--nb-silver); vertical-align: middle; white-space: nowrap; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody td.l { text-align: left; }
.board tbody tr:hover { background: var(--nb-silver-2); }

.rank { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--nb-text); }
.rank.ref { color: var(--nb-text-faint); font-weight: 400; }

.cell-team { display: flex; align-items: center; gap: 12px; }
.team-icon { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; overflow: hidden; }
.team-icon svg { width: 66%; height: 66%; display: block; }
.team-lines { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.team-name { font-weight: 600; font-size: 14.5px; color: var(--nb-text); }
a.team-name:hover { color: var(--nb-violet); }
.team-model { font-family: var(--font-mono); font-size: 11px; color: var(--nb-text-faint); }

.tags { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid transparent; letter-spacing: .01em; }
.tag-vla { background: var(--nb-lilac); color: #463bc0; }
.tag-wm { background: var(--nb-sky); color: #1358c4; }
.tag-video { background: var(--nb-copper); color: #a2650f; }
.tag-baseline { background: #ececef; color: #5b616a; }
.tag-human { background: var(--nb-mint); color: #1a7a37; }
.tag-track { background: transparent; border-color: var(--nb-border-strong); color: var(--nb-text-muted); }
/* Track pill: ghost/outline mono label, deliberately distinct from the filled architecture chips. */
.track-pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nb-text-muted); background: transparent; border: 1px solid var(--nb-border-strong); border-radius: var(--r-pill); padding: 1px 7px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }

.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; font-size: 13.5px; color: var(--nb-text-muted); }
.score { font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.015em; font-weight: 700; font-size: 16px; color: var(--nb-text); }

.trend { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; justify-content: flex-end; }
.trend.up { color: var(--nb-up); }
.trend.down { color: var(--nb-down); }
.trend.flat { color: var(--nb-text-faint); }
.spark { display: inline-block; vertical-align: middle; }

.move { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; justify-content: flex-end; }
.move.up { color: var(--nb-up); }
.move.down { color: var(--nb-down); }
.move.flat { color: var(--nb-text-faint); }

/* row variants */
.board tr.baseline-row td { background: linear-gradient(to right, rgba(93,82,246,.055), rgba(93,82,246,.02)); }
.board tr.baseline-row:hover td { background: linear-gradient(to right, rgba(93,82,246,.1), rgba(93,82,246,.04)); }
.board tr.human-row td { background: linear-gradient(to right, rgba(224,255,79,.24), rgba(224,255,79,.06)); border-bottom: 1px solid #e4ecc0; }
.board tr.winner-row td { background: linear-gradient(to right, rgba(224,255,79,.22), rgba(224,255,79,.03)); }
.board tr.winner-row .team-name { color: var(--nb-navy); }
.winner-badge { display: inline-block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nb-navy); background: var(--nb-lime); padding: 2px 7px; border-radius: var(--r-pill); margin-left: 8px; }
.board tr.dna td { opacity: .5; }
.board tr.dna .score { color: var(--nb-text-faint); }
.baseline-runs { font-family: var(--font-mono); font-size: 9.5px; color: var(--nb-violet); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; white-space: nowrap; }
.dna-note { font-size: 10.5px; color: var(--nb-text-faint); margin-left: 8px; }

/* cut-line */
tr.cutline-row td { padding: 0 !important; border: 0 !important; background: transparent !important; }
.cutline { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: repeating-linear-gradient(90deg, var(--nb-ink) 0 8px, transparent 8px 16px) left/100% 2px no-repeat; }
.cutline-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-ink); background: #fff; padding: 3px 12px; border: 1px solid var(--nb-ink); border-radius: var(--r-pill); }
.cutline-sub { font-size: 11.5px; color: var(--nb-text-muted); background: #fff; padding: 2px 8px; }

.footnote { font-size: 12.5px; color: var(--nb-text-muted); margin-top: 14px; line-height: 1.5; }
.footnote em { font-style: italic; }

/* ---------- credibility strip ---------- */
.cred { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 20px 24px; margin-top: 22px; background: var(--nb-silver); border-radius: var(--r-block); font-size: 13.5px; }
.cred-item { display: inline-flex; align-items: center; gap: 9px; color: var(--nb-text-muted); }
.cred-item b { color: var(--nb-text); font-weight: 600; }
.cred-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nb-violet); }
.cred-dot.lime { background: var(--nb-lime-dark); }

/* ---------- generic cards ---------- */
.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--nb-border); border-radius: var(--r-card); padding: 26px; }
.card.fill-silver { background: var(--nb-silver-2); border-color: transparent; }

/* ---------- enter page ---------- */
.page-hero { background: var(--nb-silver-2); border-bottom: 1px solid var(--nb-border); }
.page-hero .container { padding-top: 46px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 12px; letter-spacing: -.025em; }
.page-hero p.lede { font-size: 18px; color: var(--nb-text-muted); max-width: 64ch; margin-top: 14px; }

.track-card { position: relative; overflow: hidden; }
.track-card .track-kind { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--nb-violet); }
.track-card h3 { font-size: 22px; margin: 8px 0 10px; }
.track-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--nb-text-muted); font-size: 14px; }
.track-card li { margin-bottom: 6px; }
.track-card .reward { margin-top: 16px; font-size: 13.5px; color: var(--nb-text); font-weight: 600; }

.submit-box { background: var(--nb-ink); color: #fff; border-radius: var(--r-card); padding: 30px; position: relative; overflow: hidden; }
.submit-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 100% 0%, rgba(93,82,246,.24), transparent 60%); }
.submit-box > * { position: relative; z-index: 1; }
.submit-box h3 { color: #fff; font-size: 22px; }
.submit-box .submit-line { color: var(--nb-lime); font-size: 17px; font-weight: 600; margin: 8px 0 18px; }
.submit-box p { color: rgba(255,255,255,.8); }
.submit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.submit-opt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-block); padding: 18px; }
.submit-opt .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-lime); font-weight: 700; }
.submit-opt h4 { margin: 8px 0 6px; font-size: 16px; }
.submit-opt p { font-size: 13px; margin: 0; }

.task-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task-card { border: 1px solid var(--nb-border); border-radius: var(--r-block); overflow: hidden; background: #fff; }
.task-thumb { aspect-ratio: 16 / 9; width: 100%; display: block; background: var(--nb-ink); object-fit: cover; }
.task-meta { padding: 12px 14px; }
.task-meta .t-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.task-engine { font-family: var(--font-mono); font-size: 10.5px; color: var(--nb-text-muted); margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .03em; }
.engine-dot { width: 7px; height: 7px; border-radius: 50%; }
.engine-dot.robocasa { background: var(--nb-violet); }
.engine-dot.robolab { background: var(--nb-blue); }
.engine-dot.franka { background: var(--nb-lime-dark); }

.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--nb-border); font-size: 14.5px; }
.rules-list li:last-child { border-bottom: 0; }
.rules-list .rk { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--nb-violet); display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--font-mono); border: 1px solid var(--nb-border); }

/* ---------- detail page ---------- */
.detail-header { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detail-header .team-icon { width: 50px; height: 50px; border-radius: 14px; }
.detail-title h1 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.02em; }
.detail-title .team-model { font-size: 13px; margin-top: 4px; }
.detail-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.detail-meta .dm-k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--nb-text-faint); font-weight: 700; }
.detail-meta .dm-v { font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-weight: 700; font-size: 23px; }
.detail-meta .dm-v.lime { color: #7f8f1a; }

/* environment blocks (per-eval, deliberately distinct so no one reads them as the same tasks) */
.env-block + .env-block { margin-top: 22px; }
.env-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.env-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: var(--r-pill); }
.env-badge.robocasa { background: rgba(93,82,246,.12); color: #463bc0; }
.env-badge.robolab { background: rgba(2,123,243,.12); color: #0a63c4; }
.env-badge.franka { background: rgba(203,233,58,.22); color: #6f7d15; }
.env-note { font-size: 12.5px; color: var(--nb-text-muted); }
.subset-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--nb-text-muted); background: var(--nb-silver); border-radius: var(--r-pill); padding: 5px 11px; margin-top: 10px; }
.subset-chip::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--nb-lime-dark); }

.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: right; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-text-faint); padding: 8px 12px; border-bottom: 1px solid var(--nb-border); white-space: nowrap; }
.mini-table th.l { text-align: left; }
.mini-table td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--nb-silver); font-size: 13.5px; color: var(--nb-text-muted); }
.mini-table td.l { text-align: left; color: var(--nb-text); font-weight: 500; }
.mini-table td.val { font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--nb-text); font-weight: 600; }
.mini-table tr:last-child td { border-bottom: 0; }


.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.video-slot { border-radius: var(--r-block); overflow: hidden; border: 1px solid var(--nb-border); background: #000; position: relative; }
.video-slot video, .video-slot .poster { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: var(--nb-ink); }
.video-slot .vcap { position: absolute; left: 10px; bottom: 9px; font-family: var(--font-mono); font-size: 10.5px; color: #fff; background: rgba(12,12,14,.72); padding: 3px 9px; border-radius: var(--r-pill); backdrop-filter: blur(4px); pointer-events: none; }
.video-slot .badge-real { position: absolute; right: 10px; top: 9px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-navy); background: var(--nb-lime); padding: 3px 8px; border-radius: var(--r-pill); pointer-events: none; }
.play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; pointer-events: none; }
.play::after { content: ""; border-left: 14px solid var(--nb-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--nb-ink); color: #fff; padding: 46px 0 30px; margin-top: 40px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.powered { max-width: 46ch; }
.powered .p-k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-lime); font-weight: 700; }
.powered p { color: rgba(255,255,255,.78); font-size: 14px; margin: 8px 0 0; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-step + .tl-step { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
  .submit-cols { grid-template-columns: 1fr; }
  .task-cards { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .nav-links .nav-hide { display: none; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hero-inner { padding: 36px 16px 44px; }
  .section { padding-block: 40px; }
  .task-cards { grid-template-columns: 1fr; }
  .stat { flex: 1 1 40%; min-width: 0; }
  .detail-meta { gap: 18px; }
  .brand .b-sub { display: none; }
  .nav .concept-badge { display: none; }
  /* Collapse the board to the essential columns so the story reads without a sideways scroll.
     Cap the team-name block so long names wrap instead of forcing the table wider than the phone. */
  .board-wrap { overflow-x: visible; }
  table.board { min-width: 0; }
  .board .team-lines { max-width: 156px; }
  /* the cut-line spans every column; let its caption wrap so it can't force the table wide */
  .board .cutline { flex-wrap: wrap; gap: 5px 10px; }
  .board .cutline-sub { white-space: normal; }
  .cred-item { flex-wrap: wrap; }
  .board .col-engine, .board .col-sim, .board .col-trend, .board .col-move { display: none; }
  .board .tags { display: none; }
  .board .spark { display: none; }
  .board thead th, .board tbody td { padding: 12px 6px; }
  .board tbody td.l { white-space: normal; }
  .board .cell-team { min-width: 0; }
  .board .team-name { font-size: 13.5px; line-height: 1.2; overflow-wrap: anywhere; }
  .board .team-icon { width: 28px; height: 28px; }
  .board .team-model { display: none; }
  .board .cell-team { gap: 9px; }
  .board .score { font-size: 15px; }
}
