@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
:root { --accent: #726bdf; --accent-text: #625bc4; --accent-soft: #f4f3fc; color-scheme: light; color: #37352f; background: #fff; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 32px auto 64px; max-width: 900px; padding: 0; }
h1 { font-size: 40px; line-height: 1.2; letter-spacing: -1.1px; font-weight: 700; margin: 0 0 22px; }
.game-title { display: block; color: var(--accent-text); font-family: "Press Start 2P", ui-monospace, monospace; font-size: .66em; font-weight: 400; line-height: 1.45; letter-spacing: 0; margin-bottom: 18px; text-wrap: balance; }
.paper-subtitle { display: block; }
h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.35px; margin: 0 0 16px; }
p { margin: 0 0 16px; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
sup { font-size: .7em; line-height: 0; vertical-align: super; }
.venue { color: var(--accent-text); font-weight: 600; margin-bottom: 28px; }
.authors { line-height: 1.9; }
.authors span { display: inline-block; }
.affiliations { font-size: 14px; line-height: 1.8; }
.affiliations span { display: inline; margin-right: 10px; }
.author-note, .note, figcaption { color: #65635f; font-size: 14px; line-height: 1.55; }
.author-note { font-size: 12px; }
.resources { margin-top: 24px; }
.resources p { margin-bottom: 7px; }
section { margin-top: 52px; scroll-margin-top: 24px; }
figure { margin: 28px 0; }
figure a:has(img) { display: block; }
figure img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 12px; }
.overview { margin: 56px 0 52px; }
.highlight { color: var(--accent-text); }
.table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
caption { text-align: left; margin-bottom: 10px; font-size: 13px; color: #65635f; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e5e4e2; }
th { font-weight: 600; }
thead { background: #f6f6f4; }
tbody th { white-space: nowrap; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.citation-heading h2 { margin: 0; }
button { color: inherit; background: #fff; border: 1px solid #d4d3cf; border-radius: 4px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
button:hover { background: #f4f4f1; }
pre { background: #f6f5f3; border: 1px solid #ebeae7; padding: 22px; border-radius: 3px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
#copy-status { min-height: 22px; margin-top: 8px; }
footer { border-top: 1px solid #e5e4e2; margin-top: 44px; padding-top: 24px; color: #65635f; font-size: 12px; }
footer p { margin-bottom: 8px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 8px 14px; background: white; }
.skip-link:focus { top: 8px; }
@media (max-width: 960px) { body { margin: 28px 24px 48px; } }
@media (max-width: 600px) {
  body { margin: 24px 20px 40px; }
  h1 { font-size: 29px; letter-spacing: -.65px; line-height: 1.22; }
  .game-title { font-size: .62em; line-height: 1.55; margin-bottom: 14px; }
  h2 { font-size: 21px; }
  .venue { margin-bottom: 22px; }
  .authors { font-size: 15px; }
  .affiliations span { display: inline-block; }
  .resources { font-size: 14px; }
  .overview { margin-top: 36px; }
  section { margin-top: 40px; }
  th, td { padding: 10px; }
  pre { padding: 16px; font-size: 12px; }
}
@media print { body { max-width: none; margin: 0; } .skip-link, #copy-citation, #copy-status { display: none; } figure { break-inside: avoid; } }

::selection { background: #dedbf7; color: #292638; }
h3 { font-size: 18px; line-height: 1.4; margin: 28px 0 12px; }
.methods { padding-left: 24px; }
.methods li { padding-left: 4px; margin-bottom: 14px; }
.result-best { background: var(--accent-soft); }
.result-best th, .best { color: var(--accent-text); }
.numeric { font-variant-numeric: tabular-nums; }
.takeaway { border-left: 3px solid var(--accent); padding-left: 20px; margin: 28px 0; }
.example { border-left: 2px solid #dedbe9; padding-left: 20px; margin: 22px 0; }
.example pre { margin: 8px 0 16px; }
.flow-figure { max-width: 760px; margin: 28px auto; }
.source { font-size: 13px; color: #65635f; }
.resources { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.resources a { white-space: nowrap; }
.resources p { margin: 0; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .resources { gap: 10px 20px; } .example { padding-left: 14px; } }
@media (max-width: 600px) {
  table:not(.numeric) tbody th { white-space: normal; width: 42%; }
  table:not(.numeric) td { width: 58%; }
}
/* Native HTML research graphics */
.prompt-graphic { padding-top: 8px; }
.prompt-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: end; }
.method-label { min-height: 102px; }
.method-number { color: var(--accent-text); font: 12px ui-monospace, monospace; letter-spacing: .06em; }
.method-label h2 { margin: 8px 0 20px; font-size: 17px; line-height: 1.3; letter-spacing: -.2px; }
.prompt-stack { border: 1px solid #d9d5eb; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fcfbff; }
.layer { min-height: 49px; display: flex; justify-content: center; align-items: center; padding: 9px 8px; text-align: center; font-size: 13px; line-height: 1.3; border: 1px solid #dedbea; border-radius: 7px; }
.instruction { background: #e9e5fa; color: #493f88; font-weight: 600; border-color: #cec7ee; }
.role { background: #f0edfa; color: #5c537b; }
.input { background: #fff; color: #655f73; }
.rule-stack { border-color: var(--accent); background: #f7f5ff; }
.rules { background: var(--accent-text); color: #fff; border-color: var(--accent-text); font-weight: 650; gap: 20px; }
.optimization-stack { padding: 0 8px; }
.optimizer { border: 1.5px dashed var(--accent-text); color: #5147a5; background: #eeebfc; font-weight: 650; }
.diagram-arrow { display: block; text-align: center; height: 26px; color: var(--accent-text); font-size: 22px; line-height: 26px; }
.prompt-graphic figcaption { margin-top: 22px; }
.challenge-graphic { margin-top: 30px; }
.challenge-scene { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: center; }
figure img.cpdc-logo { width: 100%; max-width: 330px; height: auto; }
.challenge-track { font-size: 12px; font-weight: 650; color: var(--accent-text); margin: 14px 0 22px; }
.challenge-track span { padding: 0 8px; }
.task-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.task-block { padding: 14px 0; border-top: 2px solid #c9c2ed; }
.task-index { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.task-block h3 { font-size: 16px; margin: 10px 0; }
.task-block p { font-size: 13px; color: #686274; margin-bottom: 0; }
.task-unified { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 14px 16px; margin-top: 10px; }
.task-unified p { font-size: 14px; margin: 7px 0 0; }
.chat-scene { min-width: 0; padding: 12px 0; }
.chat-turn { display: flex; align-items: end; gap: 12px; margin-bottom: 17px; }
.chat-content { min-width: 0; flex: 1; }
.chat-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; margin: 0 0 7px 12px; color: var(--accent-text); }
.chat-bubble { position: relative; font-size: 14px; line-height: 1.6; padding: 16px 18px; border-radius: 18px; margin: 0; }
.user-bubble { color: #443866; background: #eeebfa; border-bottom-right-radius: 4px; }
.tool-turn { margin-left: 48px; margin-right: 38px; }
.tool-bubble { border: 1px solid #bcb4e7; background: #faf9ff; color: #544799; border-bottom-left-radius: 4px; }
.tool-bubble code { font-size: 13px; overflow-wrap: anywhere; }
.npc-bubble { background: var(--accent-text); color: white; border-bottom-left-radius: 4px; }
.pixel-character { display: grid; grid-template-columns: repeat(16,1fr); width: 64px; height: 64px; flex: 0 0 64px; image-rendering: pixelated; }
.pixel-character i { display: block; }
.pixel-character .px-k { background: #1d1832; }
.pixel-character .px-g { background: #eeb755; }
.pixel-character .px-b { background: #9b643e; }
.pixel-character .px-t { background: #625bc4; }
.archer-sprite { width: 80px; height: 80px; flex-basis: 80px; }
.agent-workflow { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; padding: 0; list-style: none; margin: 32px 0 22px; }
.agent-workflow li { position: relative; border: 1px solid #dfdbe9; border-radius: 9px; padding: 15px 10px; font-size: 13px; font-weight: 650; text-align: center; background: #fcfbfe; }
.agent-workflow li:not(:last-child)::after { content: '→'; position: absolute; right: -19px; top: 25px; color: #9389bd; font-size: 18px; }
.workflow-step { display: block; font: 10px ui-monospace, monospace; color: #766d86; margin-bottom: 8px; }
.agent-workflow .llm-step { background: var(--accent-text); border-color: var(--accent-text); color: white; }
.llm-step .workflow-step { color: #eeebff; }
@media (max-width: 760px) {
 .prompt-columns { gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 28px; }
 .method-label { min-height: 86px; }
 .challenge-scene { grid-template-columns: 1fr; gap: 24px; }
 .challenge-summary { max-width: 480px; }
 .chat-scene { max-width: 480px; width: 100%; justify-self: center; }
 .agent-workflow { gap: 16px; }
 .agent-workflow li { font-size: 11px; padding: 12px 5px; }
 .agent-workflow li:not(:last-child)::after { right: -15px; font-size: 14px; }
}
@media (max-width: 420px) {
 .layer { font-size: 12px; }
 .prompt-stack { padding: 9px; gap: 8px; }
 .method-label h2 { font-size: 15px; }
 .chat-bubble { font-size: 13px; padding: 13px 14px; }
 .pixel-character { width: 48px; height: 48px; flex-basis: 48px; }
 .archer-sprite { width: 64px; height: 64px; flex-basis: 64px; }
 .tool-turn { margin-left: 26px; margin-right: 20px; }
 .agent-workflow { grid-template-columns: 1fr; gap: 20px; max-width: 230px; margin-left: auto; margin-right: auto; }
 .agent-workflow li { font-size: 13px; padding: 10px; }
 .agent-workflow li:not(:last-child)::after { content: '↓'; top: auto; bottom: -21px; left: 0; right: 0; }
 .workflow-step { display: inline; margin-right: 12px; }
}
.prompt-columns { align-items: stretch; }
.prompt-column { display: flex; flex-direction: column; }
.prompt-stack, .optimization-stack { margin-top: auto; }
