:root{--ink:#241f39;--muted:#665f77;--blue:#6341b2;--line:#ded8e8;--serif:Georgia,'Times New Roman',serif;--purple:#7350bd;--cyan:#187eaa;--gold:#e3ac43;--navy:#19152e}
html{scroll-padding-top:24px}body{background:#faf9fe;color:var(--ink)}
.wrap{width:min(1080px,calc(100% - 64px))}.section{padding:72px 0}h2{font-size:36px;font-weight:750;letter-spacing:-.035em;text-align:left;margin-bottom:18px}h3{letter-spacing:-.02em}
.topbar{width:100%;padding:15px max(32px,calc((100vw - 1080px)/2));display:flex;justify-content:space-between;align-items:center;background:var(--navy);border-bottom:3px solid var(--purple);gap:24px}
.topbar a{color:#e8e2f7}.nav-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:750;letter-spacing:-.03em;white-space:nowrap}.nav-brand img{width:36px;height:36px;object-fit:contain}.nav-brand:hover{text-decoration:none;color:#fff}.nav-links{display:flex;gap:28px;font-size:14px}.nav-links a:hover{color:#f5ca64;text-decoration:none}
.hero{padding:44px 0 52px;position:relative}.project-logo{width:112px;height:112px;margin:0 auto 10px;object-fit:contain}
h1{font:800 66px/1.06 var(--sans);letter-spacing:-.055em;color:#493078;margin-bottom:18px}h1 span{font:500 28px/1.35 var(--sans);color:#2d2740;letter-spacing:-.02em;margin-top:15px}.hero-intro{font-size:17px;color:var(--muted);line-height:1.6;margin:0 auto 24px}
.author-block{margin:0 auto 22px}.authors{color:#5c458c;font-size:16px}.affiliations{font-size:13px;color:#686176}.author-notes,.contact-email{font-size:13px}.author-notes{margin:10px 0 3px}.resource-links{gap:12px}.pill{background:#fff;color:#4b367b;border:1px solid #d1c6e6;border-bottom:3px solid #c1b0df;border-radius:7px;padding:9px 20px;font-weight:600;font-size:14px;transition:background .15s}.pill:first-child{background:#6641a6;border-color:#6641a6;border-bottom-color:#432b72;color:#fff}.pill:hover{background:#eee8fa;color:#352154}.pill:first-child:hover{background:#57358e;color:#fff}
.section-heading{max-width:800px;margin-bottom:30px}.section-heading>p:last-child{color:var(--muted);font-size:18px;line-height:1.65;margin-bottom:0}.eyebrow{font:700 12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;color:#695097;margin:0 0 12px}
.benchmark-section{background:white;border-top:1px solid #e7e2ef}.game-gallery{background:var(--navy);border:1px solid #332a4d;border-radius:14px;padding:22px;box-shadow:0 6px 0 #ded7ee}
.gallery-heading{display:flex;justify-content:space-between;gap:16px;color:#faf7ff;font-weight:650;font-size:17px;margin-bottom:17px}.gallery-meta{font-size:13px;font-weight:400;color:#bdb3d0}
.hero-mosaic{max-width:none;margin:0;gap:13px}.hero-frame{background:#282039;border:1px solid #443754;border-radius:7px;box-shadow:none;transition:border-color .15s}.hero-frame:hover{border-color:#d7b669}.preview-screen{background:#0f0c19}.hero-frame img{object-fit:contain}.frame-tag{background:#282039;border-top:1px solid #443754;color:#fff;padding:10px 12px;font-size:15px;min-height:67px}.frame-tag strong{font-weight:600}.frame-tag small{display:block;color:#bdb3d0;font-size:12px;margin-top:3px;font-weight:400}
.preview-footer{margin-top:18px;gap:18px}.preview-footer .caption{color:#bdb3d0;font-size:13px;margin:0}.game-gallery #preview-toggle{color:#eee8fa;background:#30263f;border-color:#655476;font-size:13px}.game-gallery #preview-toggle:hover{background:#433353}
.benchmark-highlights{margin:28px 0 36px;gap:13px}.benchmark-highlights>div{background:#f9f7fe;border-color:#ded6ee;border-top:3px solid #9573c9;border-radius:7px;min-height:112px;padding:17px 12px}.benchmark-highlights>div:nth-child(2){border-top-color:#57add2}.benchmark-highlights>div:nth-child(3){border-top-color:#e4b653}.benchmark-highlights>div:nth-child(4){border-top-color:#739b80}.benchmark-highlights>div:nth-child(5){border-top-color:#c283a6}.benchmark-highlights dd{font:750 32px/1.1 var(--sans);color:#4b3278;letter-spacing:-.04em}.benchmark-highlights dt{font-size:13px;color:#665f77;text-align:center}
.capability-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.capability{border-top:3px solid var(--accent);padding:17px 0 10px;--accent:#3487ad}.capability.strategy{--accent:#bc8d2b}.capability.composition{--accent:#9e6bbc}.capability.control{--accent:#568c71}.capability-count{font:600 12px/1.4 ui-monospace,SFMono-Regular,monospace;color:var(--accent)}.capability h3{font-size:18px;line-height:1.35;margin:10px 0;min-height:49px}.capability p{font-size:15px;line-height:1.65;color:var(--muted);margin:0 0 12px}.game-list{font-size:12px;line-height:1.5;color:#766e85;display:block}
.evaluation-strip{margin:30px 0 34px;padding:25px;border:1px solid #e0d9eb;border-radius:10px;background:#faf8fe;display:grid;grid-template-columns:1fr 1fr;gap:20px 30px}.evaluation-strip>div{display:flex;align-items:flex-start;gap:15px}.metric-token{width:46px;height:46px;flex-shrink:0;display:grid;place-items:center;font:750 18px/1 ui-monospace,SFMono-Regular,monospace;color:#69479f;background:#eae1f6;border:1px solid #d1bee8;border-radius:7px}.evaluation-strip h3{font-size:17px;margin:0 0 7px}.evaluation-strip p{font-size:15px;color:var(--muted);margin:0}.evaluation-strip>p{grid-column:1/-1;border-top:1px solid #e0d9eb;padding-top:15px;font-size:13px}
.task-catalogue{padding-top:24px;border-top:1px solid #e5dfee}.task-catalogue>h3{font-size:24px}.task-catalogue>p{font-size:16px;color:var(--muted)}.game-item{border-color:#e6e0ed}.game-item:hover{background:#faf7ff}.game-item strong{color:#61448f}.task-browser{background:#faf9fe;border:1px solid #e4dced;border-radius:8px;padding:17px 20px}.task-browser summary{font-weight:600}.task-browser-body{padding-top:22px}
.harness-section{background:#f0ecf8;border-block:1px solid #e0d7ef}.harness-section .eyebrow{color:#7856a6}.harness-console{background:#fff;border:1px solid #c6b4dd;border-radius:12px;overflow:hidden;box-shadow:0 5px 0 #dfd4ef}.console-top{display:flex;justify-content:space-between;padding:15px 22px;background:#372549;color:#f8f3ff;font-size:14px;font-weight:600}.console-top span:last-child{font-family:ui-monospace,SFMono-Regular,monospace;color:#d2b3ee}.harness-tabs{display:flex;background:#faf7ff;padding:0 22px;gap:25px;border-bottom:1px solid #ddd3e9}.harness-tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;padding:15px 0;font-size:14px;font-weight:600;color:#756580}.harness-tabs button[aria-selected=true]{border-color:#8556bd;color:#61388c}.harness-panel{display:grid;grid-template-columns:.9fr 1.1fr;gap:45px;padding:34px 28px;min-height:287px;align-items:center}.mechanism-copy h3{font-size:25px;line-height:1.25;margin:0 0 16px}.mechanism-copy p{font-size:16px;line-height:1.7;color:#6e6377;margin:0}.mechanism-visual{min-width:0}.observation-track{display:grid;grid-template-columns:repeat(3,1fr);position:relative;gap:14px}.observation-track:before{content:'';position:absolute;top:9px;left:10px;right:10px;height:3px;background:#c5a5e7}.observation-track>div{position:relative}.sample-marker{display:block;width:21px;height:21px;border:4px solid #8556bd;background:#fff;border-radius:4px;margin-bottom:14px}.observation-track strong{display:block;font-size:14px}.observation-track small{display:block;font-size:13px;color:#7c6e88;line-height:1.5;margin-top:6px}.mechanism-note{font-size:13px;color:#786986;line-height:1.65;margin:20px 0 0;border-top:1px solid #e8dff0;padding-top:15px}.memory-flow{display:grid;gap:9px}.memory-flow>div{padding:11px 14px;border:1px solid #dac8eb;border-left:4px solid #9c6dc7;border-radius:5px;background:#fbf8ff}.memory-flow strong,.memory-flow span{display:block;font-size:14px}.memory-flow span{font-size:13px;color:#7c6e88;margin-top:3px}.memory-flow .mechanism-note{margin-top:5px}.clock-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.clock-flow>div{border:1px solid #d5c6e5;border-radius:7px;background:#f5effb;padding:18px 11px}.clock-flow span,.clock-flow strong{display:block;font-size:13px;line-height:1.5}.clock-flow strong{font-size:15px;margin-top:10px;color:#7d58a1}.clock-flow .clock-running{background:#e9f6ef;border-color:#abd4bd}.clock-running strong{color:#38704f}.clock-flow .mechanism-note{grid-column:1/-1;margin-top:5px}.harness-bottom{display:flex;align-items:center;gap:30px;margin:30px 0 20px}.harness-bottom p{font-size:16px;line-height:1.7;color:#6c5c7d;margin:0;max-width:800px}.harness-bottom strong{color:#49345b}.harness-bottom .text-link{color:#65448b;white-space:normal;font-size:14px;font-weight:600;min-width:130px}.harness-evidence{border-block:1px solid #d4c6e3;padding:14px 0;font-size:15px}.harness-evidence summary{cursor:pointer;color:#5f437c}.harness-evidence img{width:100%;margin-top:18px;border-radius:6px}.architecture-heading{margin:38px 0 20px}.architecture-heading h3{font-size:24px}.architecture-heading p{font-size:16px;color:#6c5c7d;max-width:850px;margin-bottom:0}.framework{background:#fff;border:1px solid #ded5e8;border-radius:10px;padding:18px;margin:20px 0 0}.framework figcaption{font-size:13px;margin-top:14px;color:#7e738a}
#leaderboard{padding-top:72px;padding-bottom:60px}#leaderboard>p:not(.eyebrow):not(.fineprint){color:var(--muted)}.board-controls{background:#f0ebf9;border:1px solid #e0d6ee;border-radius:10px;padding:18px 22px}.table-scroll{background:#fff;border-radius:7px}.leaderboard th{background:#ede6f7;color:#584274;border-top:0;border-bottom:1px solid #d5c6e5}.leaderboard td{border-color:#ebe5f2}.leaderboard tbody tr:first-child td{background:#faf4df}.leaderboard td:first-child{color:#9272b4;font-weight:650}.bar-gsh{background:#8a64b4}.gsh-key{background:#8a64b4}.comparison{background:#fff;border:1px solid #e4dced;border-radius:10px;padding:25px}.efficiency-panel{border-color:#ddd2e9}
#trajectories{border-top:1px solid #ded5e8;padding-top:64px}.examples-intro{text-align:left;color:var(--muted)}.episode-games{justify-content:flex-start}.episode-games button{border-radius:5px 5px 0 0}.episode-games button[aria-pressed=true]{color:#7147a5;border-bottom-color:#8d63bc}.episode-option{border-radius:9px;background:#fff;border-color:#ded3eb}.episode-option[aria-pressed=true]{border-color:#8e62ba;box-shadow:inset 0 0 0 1px #8e62ba;background:#faf5ff}.episode-model{color:#3b2a50}.episode-final-score{color:#6d439e}.recording-player{background:#fff;border:1px solid #e0d6ec;border-radius:12px;padding:22px}.frame-expand{border-radius:6px;overflow:hidden}.recording-controls button{border-radius:5px}.recording-controls button:first-child{background:#67428f;color:#fff;border-color:#67428f}.recording-details blockquote{font-family:var(--sans);color:#53465f}.recording-details pre{background:#f5f1f9;border-radius:6px}input[type=range]{accent-color:#8559b1}footer{border-color:#ded5e8;padding:28px 0 35px;color:#80718d}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}.topbar{padding:12px 20px}.capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capability h3{min-height:0}.harness-panel{gap:25px;padding:28px 22px}.hero-mosaic{grid-template-columns:repeat(3,minmax(0,1fr))}.frame-tag{padding:9px;min-height:79px}.frame-tag strong{font-size:14px}.frame-tag small{font-size:11px}.benchmark-highlights{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.benchmark-highlights dd{font-size:28px}.benchmark-highlights dt{font-size:12px}}
@media(max-width:680px){.section{padding:48px 0}.wrap{width:calc(100% - 32px)}.topbar{padding:12px 16px;flex-wrap:wrap;gap:10px}.nav-brand{font-size:16px}.nav-brand img{width:28px;height:28px}.nav-links{gap:20px;font-size:13px;justify-content:space-between;width:100%}.hero{padding:30px 0 36px}.project-logo{width:92px;height:92px}h1{font-size:48px}h1 span{font-size:22px}.hero-intro{font-size:15px}.author-row{gap:6px 12px}.authors{font-size:14px}.affiliations{font-size:12px}.affiliations>div{flex-wrap:wrap}.resource-links{gap:9px}.pill{font-size:13px;padding:8px 13px}h2{font-size:29px}.section-heading>p:last-child{font-size:16px}.eyebrow{font-size:11px}.game-gallery{padding:13px;border-radius:10px}.gallery-heading{font-size:15px}.gallery-meta{font-size:11px}.hero-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.frame-tag{min-height:81px;display:block}.frame-tag small{font-size:11px}.preview-footer{flex-direction:column;align-items:flex-start;gap:12px}.preview-footer .caption{font-size:12px}.benchmark-highlights{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px}.benchmark-highlights>div:last-child{grid-column:1/-1;min-height:92px}.benchmark-highlights dt{font-size:13px}.capability-grid{gap:16px}.capability h3{font-size:17px;min-height:45px}.capability p{font-size:14px}.evaluation-strip{grid-template-columns:1fr;padding:20px;gap:22px}.task-browser{padding:15px}.harness-tabs{gap:16px;padding:0 16px;overflow-x:auto}.harness-tabs button{font-size:13px;padding:14px 0;flex:1;min-width:105px}.harness-panel{grid-template-columns:1fr;gap:25px;padding:25px 20px;min-height:440px}.mechanism-copy h3{font-size:24px}.mechanism-copy p{font-size:15px}.harness-bottom{display:block}.harness-bottom p{font-size:15px}.harness-bottom .text-link{display:inline-block;margin-top:12px}.framework{padding:8px}.framework figcaption{font-size:12px}.architecture-heading h3{font-size:22px}.architecture-heading p{font-size:15px}.board-controls{padding:16px}.comparison{padding:18px}.recording-player{padding:14px}.recording-layout{gap:20px}.recording-controls{gap:7px}#leaderboard,#trajectories{padding-top:48px}.episode-games{gap:15px}.episode-games button{font-size:13px}.episode-counts{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hero-frame,.pill{transition:none}}

/* Benchmark is one continuous chapter; Harness follows as a separate chapter. */
.benchmark-section{padding-bottom:0}.harness-results{margin-top:38px;padding-top:28px;border-top:1px solid #d4c6e3}.harness-results>h3{font-size:24px}.harness-results .comparison{margin-top:20px}

/* Four chapters: benchmark, harness, evaluation, and recorded cases. */
.benchmark-section{padding-bottom:64px}.benchmark-figures{margin:36px 0 42px}.paper-figure{margin:30px 0;background:#fff;border:1px solid #e0d9e9;border-radius:10px;overflow:hidden}.paper-image{display:block;padding:20px;background:#fff}.paper-image img{display:block;width:100%;height:auto;object-fit:contain;margin:0}.paper-figure figcaption{display:flex;justify-content:space-between;gap:24px;border-top:1px solid #ece6f2;padding:18px 22px;text-align:left;color:var(--muted);font:14px/1.6 var(--sans)}.paper-figure figcaption strong{font-size:17px;color:var(--ink);font-weight:650}.paper-figure figcaption p{margin:5px 0 0;font-size:14px;line-height:1.6}.paper-figure figcaption>a{white-space:nowrap;font-size:12px;align-self:flex-start;padding-top:3px;color:#674495}.composition-figure .paper-image{max-width:760px;margin:auto}.harness-section .paper-figure{margin-top:30px}.results-comparisons{margin:46px 0 30px;padding-top:30px;border-top:1px solid var(--line)}.results-comparisons>h3,.paper-cases>h3{font-size:26px;margin:0 0 18px}.results-comparisons .comparison{margin-top:0}.cost-figure .paper-image{max-width:740px;margin:auto}.paper-cases{margin-top:64px;padding-top:34px;border-top:1px solid var(--line)}.paper-cases>p{font-size:16px;line-height:1.65;color:var(--muted);max-width:850px}.paper-case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.paper-case-grid .paper-figure{margin:0}.paper-case-grid .paper-image{padding:16px}.paper-case-grid .paper-image img{max-height:460px}.paper-case-grid figcaption{display:block;padding:18px}.paper-case-grid figcaption>a{display:inline-block;margin-top:10px}.paper-case-grid figcaption strong{font-size:18px}
.episode-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:28px 0 32px;padding:0;border:0;overflow:visible}.episode-games .game-choice{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0;text-align:left;white-space:normal;background:#fff;color:var(--ink);border:1px solid #dcd4e7;border-radius:9px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.game-choice-art{display:block;background:#211930;aspect-ratio:460/180;overflow:hidden}.game-choice-art img{display:block;width:100%;height:100%;object-fit:cover}.game-choice-art.osu-mark{background:#f2d6e5}.game-choice-art.osu-mark img{object-fit:contain;padding:10px}.game-choice-copy{display:block;padding:13px 15px}.game-choice-copy strong{display:block;font:650 17px/1.3 var(--sans);letter-spacing:-.015em}.game-choice-copy small{display:block;color:var(--muted);font:12px/1.5 var(--sans);margin-top:5px}.game-choice-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:11px;color:#8a7e98;font:11px/1.5 var(--sans)}.game-choice-selected{visibility:hidden;color:#65418d;font-weight:650}.episode-games .game-choice[aria-pressed=true]{color:var(--ink);border-color:#8055b5;background:#f6f0fc;box-shadow:0 0 0 2px #8055b5}.game-choice[aria-pressed=true] .game-choice-selected{visibility:visible}.episode-games .game-choice:hover{border-color:#8a66b2;box-shadow:0 2px 10px #34204715}.game-choice:focus-visible{outline:3px solid #9265c8;outline-offset:3px}.episode-context{display:flex;align-items:center;gap:22px;text-align:left;padding:24px 0 20px;border-top:1px solid var(--line);margin:0}.episode-context>img{display:block;width:155px;height:76px;object-fit:cover;border-radius:5px;flex-shrink:0}.episode-context>img.osu-mark{object-fit:contain;background:#f2d6e5;padding:4px}.episode-game-name{display:block;font-size:12px;font-weight:650;letter-spacing:.04em;color:#79549e;margin-bottom:6px}.episode-context h3{font-size:25px;line-height:1.25;margin:0 0 8px}.episode-context p{font-size:15px;line-height:1.6;margin:0;color:var(--muted)}.episode-options{margin-top:0;margin-bottom:22px}.episode-option .episode-outcome{justify-self:start;padding:3px 8px;border-radius:4px;background:#f1edf5;color:#6d6079;font-size:12px}.episode-option .episode-outcome.completed{background:#e2f0e8;color:#357052}.episode-option .episode-final-score{font-size:32px}.episode-option .episode-final-score small{font-size:12px}.episode-option{padding:19px 22px}
@media(max-width:680px){.benchmark-section{padding-bottom:44px}.paper-image{padding:9px}.paper-figure figcaption{display:block;padding:15px}.paper-figure figcaption>a{display:inline-block;margin-top:10px}.paper-case-grid{grid-template-columns:1fr;gap:20px}.paper-cases{margin-top:44px}.episode-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.game-choice-copy{padding:11px}.game-choice-copy strong{font-size:14px}.game-choice-copy small{font-size:11px;min-height:33px}.game-choice-meta{font-size:10px;gap:4px;margin-top:5px}.episode-context{gap:13px;align-items:flex-start;padding:20px 0}.episode-context>img{width:90px;height:55px}.episode-context h3{font-size:21px}.episode-context p{font-size:14px}.episode-game-name{font-size:11px}.episode-option{padding:15px}.episode-option .episode-final-score{font-size:28px}}

/* Resource service marks remain local for offline viewing. */
.community-section{background:#f0edf7;border-top:1px solid #e1daec;padding:64px 0 80px}.community-section .eyebrow{color:#6d607d;margin-bottom:12px}.community-section h2{font-size:44px;line-height:1.15;letter-spacing:-.045em;margin:0 0 30px}.community-section h2 span{color:#68429b}.community-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:24px;align-items:stretch}.community-card{min-width:0;background:#fff;border:1px solid #e6dfed;border-radius:20px;padding:28px;box-shadow:0 10px 28px #30204406}.community-card h3{font-size:23px;line-height:1.3;margin:0 0 20px}.citation-card{display:flex;flex-direction:column}.citation-card h3{font-size:18px;color:#6f627e}.citation-code{flex:1;min-height:180px;margin:0;border:1px solid #e0dce7;border-radius:12px;background:#f7f6f9;padding:20px;overflow:auto;white-space:pre;font:14px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.contribution-card p{font-size:17px;line-height:1.75;color:#62596f;margin:0 0 16px}.contribution-card p:last-child{margin-bottom:0}@media(max-width:680px){.community-section{padding:44px 0 50px}.community-section h2{font-size:34px;margin-bottom:24px}.community-grid{grid-template-columns:1fr;gap:18px}.community-card{padding:22px;border-radius:15px}.community-card h3{font-size:21px}.citation-card h3{font-size:17px}.citation-code{min-height:150px}.contribution-card p{font-size:16px}}
.resource-links .pill{display:inline-flex;align-items:center;justify-content:center;gap:8px}.resource-icon{display:block;width:20px;height:20px;object-fit:contain;flex-shrink:0}.resource-links .pill:first-child .arxiv-icon{filter:brightness(0) invert(1)}.resource-links .pill[aria-disabled=true]{cursor:default}.resource-links .pill[aria-disabled=true]:hover{background:#fff;color:#4b367b}

.contribution-card a{overflow-wrap:anywhere;color:#68429b;text-decoration:underline;text-underline-offset:3px}


/* Four-color palette sampled from the manuscript framework figure. */
:root {
  --purple: #75429f;
  --blue: #365f9f;
  --green: #5d8738;
  --gold: #d5a418;
  --purple-soft: #dec8ef;
  --blue-soft: #dbe4f5;
  --green-soft: #e3f3d9;
  --gold-soft: #fff1cb;
  --ink: #252a3c;
  --muted: #626b7a;
}
body { background: #fff; }
.topbar {
  position: relative;
  background: #fff;
  border-bottom: 0;
  padding-block: 13px;
}
.topbar::after {
  content: ''; position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--purple) 25% 50%, var(--green) 50% 75%, #efc34b 75%);
}
.topbar a, .nav-brand:hover { color: #30364d; }
.nav-links a { font-weight: 600; }
.nav-links a:nth-child(1), .nav-links a:nth-child(1):hover { color: var(--blue); }
.nav-links a:nth-child(2), .nav-links a:nth-child(2):hover { color: var(--purple); }
.nav-links a:nth-child(3), .nav-links a:nth-child(3):hover { color: #8f6910; }
.nav-links a:nth-child(4), .nav-links a:nth-child(4):hover { color: #4d7635; }
.hero {
  width: 100%; max-width: none; margin: 0;
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0; background: #f8fafc; border-bottom: 1px solid #dce4ee;
}
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-game-wall {
  position: absolute; width: max(1520px, 126%); height: 138%;
  left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-9deg);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 17px;
  opacity: .3; filter: saturate(.75);
}
.hero-game-wall img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; border: 5px solid #fff;
}
.hero-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 48% 85% at 50% 49%, #fffffffa 0%, #ffffffed 48%, #ffffff70 78%, #ffffff24 100%),
    linear-gradient(180deg, #f8fafc25 0%, #f8fafc00 75%, #f8fafc 100%);
}
.hero-content { position: relative; padding: 45px 0 56px; }
.hero .project-logo { width: 118px; height: 118px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(56px, 5.8vw, 78px); color: #603788; letter-spacing: -.055em; margin-bottom: 19px; }
.hero h1 span { font-size: 28px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; color: #26334a; margin-top: 17px; }
.hero-intro { color: #596579; font-size: 17px; margin-bottom: 25px; }
.hero .author-block { max-width: 870px; }
.hero .author-block .authors { color: #365f9f; font-size: 16px; }
.hero .affiliations { color: #5a6575; }
.hero .author-notes { color: #636d79; }
.resource-links { gap: 13px; }
.resource-links .pill { border-radius: 8px; padding: 10px 23px; font-size: 15px; border-bottom-width: 1px; box-shadow: 0 3px 0 #00000008; }
.resource-links .pill:first-child { background: var(--purple); border-color: var(--purple); color: #fff; }
.resource-links .pill:nth-child(2) { background: #edf3fc; border-color: #b8cce8; color: #31558c; }
.resource-links .pill:nth-child(3) { background: #fff5d9; border-color: #e6ce80; color: #795b16; }
.resource-links .pill:hover { transform: translateY(-1px); }
.resource-links .pill:first-child:hover { background: #64358a; }
.resource-links .pill:nth-child(2):hover { background: #dbe8f9; }
.resource-links .pill:nth-child(3):hover { background: #ffedba; }
.benchmark-section { background: #f7faff; border-top: 0; }
.benchmark-section .eyebrow { color: var(--blue); }
.benchmark-section h2, .task-catalogue>h3 { color: #2f5086; }
.game-gallery { background: #eaf0fa; border-color: #c6d4eb; box-shadow: 0 5px 0 #dbe4f5; }
.gallery-heading { color: #2e4e7e; }
.hero-frame { background: #fff; border-color: #c8d5e9; }
.hero-frame:hover { border-color: #698cbe; }
.frame-tag { background: #fff; border-color: #d9e3f0; color: #2c3d58; }
.frame-tag small { color: #69778e; }
.benchmark-highlights>div { background: #fff; border-color: #d8e1ed; border-top-color: var(--blue); }
.benchmark-highlights>div:nth-child(2) { border-top-color: var(--purple); background: #f6f0fb; }
.benchmark-highlights>div:nth-child(3) { border-top-color: var(--green); background: #f1f8eb; }
.benchmark-highlights>div:nth-child(4) { border-top-color: #dfb434; background: #fff9e9; }
.benchmark-highlights>div:nth-child(5) { border-top-color: var(--blue); background: #edf3fc; }
.benchmark-highlights>div:nth-child(1) dd, .benchmark-highlights>div:nth-child(5) dd { color: #365f9f; }
.benchmark-highlights>div:nth-child(2) dd { color: var(--purple); }
.benchmark-highlights>div:nth-child(3) dd { color: #527932; }
.benchmark-highlights>div:nth-child(4) dd { color: #916c0c; }
.task-browser { background: #fff; border-color: #d6e1ef; }
.task-catalogue, .game-item { border-color: #d8e2f0; }
.game-item strong { color: #365f9f; }
.harness-section { background: #f6f0fb; border-color: #e2d4ef; }
.harness-section h2 { color: #6b3a94; }
.harness-console { border-color: #cbb0df; box-shadow: 0 5px 0 #e5d6f1; }
.console-top { background: #75429f; }
.console-top span:last-child { color: #f0e1ff; }
.clock-flow .clock-running { background: var(--green-soft); border-color: #a9c88c; }
.clock-running strong { color: #456d2c; }
#leaderboard h2 { color: #80620f; }
.board-controls { background: #fff7e1; border-color: #ead99e; }
.leaderboard th { background: #fff1cb; border-color: #e9d795; color: #6d561b; }
.leaderboard tbody tr:first-child td { background: #fffaf0; }
.leaderboard td { border-color: #e9e7df; }
.comparison { border-color: #e4ddc8; }
.bar-nal, .nal-key { background: #90add5; }
.bar-gsh, .gsh-key { background: #9970b9; }
#trajectories { border-color: #d9e8cc; }
#trajectories h2 { color: #4e7234; }
.episode-games .game-choice { border-color: #d9e3d1; }
.episode-games .game-choice[aria-pressed=true] { border-color: #739750; background: #f2f8ec; box-shadow: 0 0 0 2px #739750; }
.game-choice-selected, .episode-game-name { color: #527932; }
.episode-context { border-color: #dce7d1; }
.recording-player { border-color: #d9e3d1; }
.episode-option { border-color: #d9e3d1; }
.episode-option[aria-pressed=true] { border-color: #789e55; box-shadow: inset 0 0 0 1px #789e55; background: #f4f9ef; }
.episode-final-score { color: #527932; }
.recording-controls button:first-child { background: #64883f; border-color: #64883f; }
.community-section { background: #f4f6fb; border-color: #dfe5ef; }
.citation-card { border-top: 4px solid #a681c3; }
.contribution-card { border-top: 4px solid #dcb83e; }
@media(max-width:900px) {
  .hero-game-wall { width: 1400px; opacity: .23; gap: 13px; }
  .hero-backdrop::after { background: radial-gradient(ellipse 65% 85% at center, #fffffff5 0%, #ffffffe3 50%, #ffffff55 100%); }
}
@media(max-width:680px) {
  .topbar { width: 100%; padding: 12px 16px; }
  .hero-content { padding: 35px 0 42px; }
  .hero .project-logo { width: 100px; height: 100px; margin-bottom: 15px; }
  .hero h1 { font-size: clamp(42px, 11.8vw, 58px); }
  .hero h1 span { font-size: 22px; line-height: 1.4; margin-top: 17px; }
  .hero-intro { font-size: 15px; }
  .hero .author-block .authors { font-size: 14px; }
  .hero .affiliations { font-size: 12px; }
  .hero-game-wall { width: 1020px; height: 118%; opacity: .26; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(5,minmax(0,1fr)); gap: 11px; }
  .hero-game-wall img { border-width: 3px; border-radius: 7px; }
  .hero-backdrop::after { background: linear-gradient(90deg,#ffffffa0,#ffffffed 24% 76%,#ffffffa0); }
  .resource-links { gap: 10px; }
  .resource-links .pill { padding: 9px 17px; font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) { .resource-links .pill:hover { transform: none; } }

@media(min-width:901px) {
  .hero-content.wrap { width: min(1240px, calc(100% - 80px)); }
  .hero .hero-content h1 { font-size: clamp(82px, 8.6vw, 128px); letter-spacing: -.045em; }
  .hero .hero-content h1 span { font-size: clamp(32px, 3.15vw, 46px); line-height: 1.3; }
  .hero .hero-intro { font-size: clamp(18px, 1.5vw, 22px); }
  .hero .hero-content .author-block { max-width: 1040px; }
  .hero .hero-content .author-block .authors { font-size: clamp(18px, 1.35vw, 20px); }
  .hero .author-row { column-gap: 30px; }
  .hero .hero-content .affiliations { font-size: 15px; }
}

/* Game UI: gold lettering, pixel edges, and the intro figure's pastel panels. */
:root { --arxiv-red: #b31b1b; --game-edge: #354b68; --game-shadow: #a7bed8; }
body { background: #fffdf6; }
.topbar { background: #fffdf6; }
.nav-brand { color: #50351d !important; }
.hero { background: #fffcf1; border-bottom: 0; }
.hero h1 {
  color: #ffd23b;
  -webkit-text-stroke: 2px #8c4716;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #fff0a0, 0 7px 0 #9c551b, 0 10px 0 #66361220;
}
.hero h1 span { -webkit-text-stroke: 0; text-shadow: none; }
.hero::after {
  content: ''; display: block; height: 13px;
  border-top: 3px solid #4d7839; border-bottom: 3px solid #73522f;
  background: repeating-linear-gradient(90deg,#9bc964 0 16px,#7fb452 16px 32px,#acd878 32px 48px);
}
.resource-links .pill {
  border: 2px solid #634b2e; border-radius: 5px;
  box-shadow: inset 0 2px 0 #ffffff7a, 0 4px 0 #634b2e;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.resource-links .pill:first-child { background: var(--arxiv-red); border-color: #771414; color: #fff; box-shadow: inset 0 2px 0 #ef77774d, 0 4px 0 #771414; }
.resource-links .pill:first-child:hover { background: #941919; }
.resource-links .pill:nth-child(2) { background: #dceeff; border-color: #365d87; box-shadow: inset 0 2px 0 #fff, 0 4px 0 #365d87; color: #234c77; }
.resource-links .pill:nth-child(3) { background: #ffe69a; border-color: #977124; box-shadow: inset 0 2px 0 #fff6d4, 0 4px 0 #977124; color: #654b16; }
.resource-links .pill:hover { transform: translateY(-2px); }
.resource-links .pill:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #ffffff60, 0 1px 0 #634b2e; }
.section { --panel-edge: #507ca1; --panel-shadow: #c0d8e9; }
.benchmark-section { background: #edf6fc; }
.harness-section { --panel-edge: #8961aa; --panel-shadow: #d7c3e8; background: #f4edf9; border-block: 2px solid #cbb6df; }
#leaderboard { --panel-edge: #a9852e; --panel-shadow: #f0dfa5; }
#trajectories { --panel-edge: #65874b; --panel-shadow: #cfdfb8; border-top: 2px solid #bed3a7; }
.section h2, .community-section h2 {
  font-family: ui-rounded, 'Trebuchet MS', var(--sans);
  letter-spacing: -.035em; font-weight: 800;
}
.section h2::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  margin-right: 13px; vertical-align: .08em; background: #efb629;
  clip-path: polygon(35% 0,65% 0,65% 25%,100% 25%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 25%,35% 25%);
}
.game-gallery, .harness-console, .recording-player, .community-card {
  border: 2px solid var(--panel-edge, #64814b); border-radius: 8px;
  box-shadow: 0 5px 0 var(--panel-shadow, #c9dcb7);
}
.game-gallery { background: #dcecf8; }
.gallery-heading { font-family: ui-rounded, 'Trebuchet MS', var(--sans); font-size: 20px; color: #315578; }
.hero-frame { border: 2px solid #617d97; border-radius: 4px; box-shadow: 0 3px 0 #b3cce0; }
.frame-tag { background: #fffdf5; border-color: #617d97; }
.benchmark-highlights>div { border: 2px solid #7d9cb7; border-top-width: 5px; border-radius: 5px; box-shadow: 0 4px 0 #c0d3e3; }
.benchmark-highlights>div:nth-child(2) { border-color: #a582c1; box-shadow: 0 4px 0 #decfea; }
.benchmark-highlights>div:nth-child(3) { border-color: #7fa25e; box-shadow: 0 4px 0 #d5e4c6; }
.benchmark-highlights>div:nth-child(4) { border-color: #c7a03e; box-shadow: 0 4px 0 #f2e2ad; }
.benchmark-highlights dd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.paper-figure { border: 2px solid var(--panel-shadow); border-radius: 7px; box-shadow: 0 3px 0 var(--panel-shadow); }
.task-browser { border: 2px solid #a6bfd3; border-radius: 5px; background: #fffdf7; }
.console-top { background: #755094; border-bottom: 3px solid #58336f; }
.harness-tabs { background: #faf5ff; }
.board-controls { background: #fff2ce; border: 2px solid #d7b65e; border-radius: 5px; box-shadow: 0 3px 0 #f0dfa5; }
.comparison { border: 2px solid #e2cd96; border-radius: 7px; }
.leaderboard th { background: #ffe7a2; border-bottom: 2px solid #c5a350; }
.episode-games .game-choice { border: 2px solid #91a87b; border-radius: 6px; background: #fffdf6; box-shadow: 0 3px 0 #d4e0c6; }
.episode-games .game-choice[aria-pressed=true] { border-color: #4c7737; background: #eaf4dc; box-shadow: 0 4px 0 #4c7737; }
.game-choice-copy strong { font-family: ui-rounded, 'Trebuchet MS', var(--sans); }
.game-choice-selected { background: #4c7737; color: #fff; border-radius: 3px; padding: 2px 7px; }
.episode-option { border: 2px solid #a4ba8d; border-radius: 5px; }
.recording-controls button:first-child { box-shadow: 0 3px 0 #3c5927; border-radius: 4px; }
.community-section { background: #edf4df; border-top: 3px solid #7c9b58; }
.community-section h2 span { color: #b77c12; }
.community-card { --panel-edge: #87a364; --panel-shadow: #cbdcb4; background: #fffef7; }
.citation-card { border-color: #9f80ba; box-shadow: 0 5px 0 #d9cae6; }
.contribution-card { border-color: #c7a24d; box-shadow: 0 5px 0 #e7d9ac; }
@media(max-width:680px) {
  .hero h1 { -webkit-text-stroke-width: 1.2px; text-shadow: 0 2px 0 #fff0a0, 0 4px 0 #9c551b; }
  .hero h1 span { -webkit-text-stroke: 0; text-shadow: none; }
  .section h2::before { width: 13px; height: 13px; margin-right: 9px; }
  .gallery-heading { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) { .resource-links .pill { transition: none; } .resource-links .pill:hover { transform: none; } }
