@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-400.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-600.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-800.ttf") format("truetype"); }

:root {
  --paper: #fff;
  --ink: #24272d;
  --muted: #5b6470;
  --line: #e2e5e9;
  --accent: #2364a4;
  --accent-light: #edf4fb;
  --soft: #f7f8fa;
  --width: 1080px;
  --header-height: 65px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.75 Manrope, Arial, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: 32px; line-height: 1.35; }
h3 { font-size: 18px; line-height: 1.55; }
p { overflow-wrap: break-word; }
sup { font-size: .65em; line-height: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.container { width: min(calc(100% - 64px), var(--width)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 64px), 810px); margin-inline: auto; }
.section { padding-block: 64px; }
.icon { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: transparent; transition: background .16s ease; }
.icon-button:hover { background: var(--soft); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 14px; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 64px; justify-content: space-between; align-items: center; gap: 24px; }
.project-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.project-brand img { width: 128px; height: auto; }
.site-menu { display: flex; align-items: center; gap: 25px; }
.site-menu a { color: var(--muted); font-size: 16px; font-weight: 600; transition: color .16s ease; }
.site-menu a:hover { color: var(--accent); }
.site-menu .nav-paper { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.nav-paper .icon { width: 17px; height: 17px; }
.menu-toggle { display: none; }

.publication { padding-block: 28px 36px; border-bottom: 1px solid var(--line); }
.publication-heading { text-align: center; }
.authors { display: flex; flex-direction: column; gap: 7px; color: #3d5267; font-size: 18px; line-height: 1.7; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.authors span { white-space: nowrap; }
.authors sup { margin-left: 3px; color: var(--muted); }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; max-width: 1020px; margin: 17px auto 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.affiliations span { white-space: nowrap; }
.author-notes { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 1.5; transition: background .16s ease, border-color .16s ease; }
.button .icon { width: 18px; height: 18px; }
.primary-button { background: var(--ink); color: #fff; }
.primary-button:hover { background: #434a55; }
.secondary-button { border-color: var(--line); background: #fff; color: #505762; }
.secondary-button:hover { background: var(--soft); border-color: #c5cbd3; }
.unavailable { color: #707780; background: var(--soft); cursor: default; }
.unavailable small { font-size: 14px; font-weight: 400; }
.opening { position: relative; isolation: isolate; width: 100%; height: calc(100svh - var(--header-height) - 40px); min-height: 290px; overflow: hidden; background: #14171a; color: #fff; }
.opening-scene { position: absolute; inset: 0; }
.opening-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.opening-wash { position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; transition: opacity .45s ease; }
.opening-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 21px; padding-block: 30px 75px; text-align: center; pointer-events: none; transition: opacity .45s ease; }
.opening h1 { max-width: 1000px; font-size: 64px; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.opening-subtitle { max-width: 960px; font-size: 28px; line-height: 1.55; font-weight: 400; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.opening-scroll { position: absolute; z-index: 2; bottom: 88px; right: 28px; width: 36px; height: 36px; color: #fff; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.22); border-radius: 50%; }
.opening-scroll:hover { background: rgba(0,0,0,.45); }
.opening.is-watching .opening-video { object-fit: contain; }
.opening.is-watching .opening-content, .opening.is-watching .opening-wash { opacity: 0; }
figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }

.abstract-section { padding-top: 32px; }
.abstract-section h2 { text-align: center; margin-bottom: 24px; }
.abstract-section p { color: #454d57; margin-top: 20px; text-align: left; }
.competition-section { border-bottom: 1px solid var(--line); }
.competition-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.7fr); align-items: center; gap: 48px; }
.competition-intro > p { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.section-heading { text-align: center; max-width: 810px; margin: 0 auto 30px; }
.section-heading > p { max-width: 760px; margin: 16px auto 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.matches-section, .method-section { background: var(--soft); border-block: 1px solid var(--line); }
.media-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #15181c; }
.media-frame video { width: 100%; height: 100%; object-fit: contain; }
.media-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 27px; margin-top: 12px; color: #535b66; font-size: 17px; line-height: 1.6; }
.recording-tag { font-size: 16px; color: #636e7b; white-space: nowrap; }
.match-experiment { max-width: 900px; margin-inline: auto; }
.match-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-block: 1px solid #d8dde4; margin-top: 22px; }
.match-tabs button { display: grid; grid-template-columns: 48px 1fr 18px; gap: 10px; align-items: center; height: 82px; width: 100%; padding: 12px 16px; border: 0; border-right: 1px solid #d8dde4; border-radius: 0; background: transparent; color: #596573; text-align: left; transition: background .16s ease; }
.match-tabs button:last-child { border-right: 0; }
.match-tabs button:hover { background: #edf0f4; }
.match-tabs button[aria-selected="true"] { background: var(--accent-light); color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.game-number { font-size: 16px; font-weight: 600; }
.score { display: flex; justify-content: center; align-items: baseline; gap: 9px; line-height: 1.2; }
.score b { font-size: 28px; font-weight: 600; }
.score > span { font-size: 17px; color: #a7aeb7; }
.match-tabs .icon { width: 17px; height: 17px; }
.match-note { margin-top: 15px; color: #5d6876; font-size: 16px; line-height: 1.75; text-align: center; }

.execution-gallery { display: grid; grid-template-columns: minmax(0,1fr); gap: 48px; max-width: 900px; margin-inline: auto; }
.simulation-screen { width: min(100%,760px); margin-inline: auto; }
.target-tabs { display: grid; grid-template-columns: 1.7fr repeat(9,minmax(0,1fr)); margin-top: 17px; border: 1px solid var(--line); }
.target-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 46px; padding: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; color: #596573; font-size: 16px; font-weight: 600; transition: color .16s ease, background .16s ease; }
.target-tabs button:last-child { border-right: 0; }
.target-tabs button .icon { width: 16px; height: 16px; }
.target-tabs button:hover { background: var(--soft); }
.target-tabs button[aria-selected="true"] { color: var(--accent); background: var(--accent-light); box-shadow: inset 0 -2px var(--accent); }

.research-figure { background: #fff; }
.figure-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; border-radius: 0; cursor: zoom-in; }
.figure-button img { width: 100%; height: auto; }
.learning-stages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 28px; }
.learning-stages article { position: relative; padding: 18px 0 0 33px; border-top: 1px solid #d8dde4; }
.stage-number { position: absolute; top: 19px; left: 0; color: #687480; font-size: 17px; font-weight: 600; }
.learning-stages h3 { font-size: 20px; }
.learning-stages p { margin-top: 12px; color: #5c6875; font-size: 18px; line-height: 1.75; }
.method-interface { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.result-navigation { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--line); }
.result-navigation a { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px; color: var(--muted); font-size: 16px; font-weight: 600; text-align: center; line-height: 1.6; }
.result-navigation a:hover { color: var(--accent); background: var(--soft); }
.result-block { padding-top: 42px; }
.result-block + .result-block { margin-top: 48px; border-top: 1px solid var(--line); }
.result-heading { max-width: 810px; margin-bottom: 28px; }
.result-heading h3 { font-size: 26px; line-height: 1.4; text-wrap: pretty; }
.result-heading > p { margin-top: 13px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.landing-results, .rally-results, .sensitivity-maps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.domain-result { min-width: 0; }
.domain-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.domain-heading h4, .intervention-heading h4 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.domain-result figure { display: flex; align-items: center; aspect-ratio: 1 / 1; }
.landing-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.landing-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.landing-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.target-marker { border: 2px solid #434a50; }
.landing-marker { background: #82a9c6; }
.result-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.result-metrics dt { color: var(--muted); font-size: 16px; line-height: 1.6; }
.result-metrics dd { margin: 5px 0 0; font-size: 34px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-metrics dd > span { font-size: 18px; }
.metric-wide { grid-column: 1 / -1; }
.evaluation-note { max-width: 900px; margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.evaluation-details { margin-top: 24px; padding-block: 14px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.evaluation-details summary { width: fit-content; max-width: 100%; cursor: pointer; font-weight: 600; }
.evaluation-details p { max-width: 900px; margin-top: 12px; color: var(--muted); }
.plot-legend { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 22px; padding: 0; list-style: none; }
.plot-legend li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.legend-mark { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; }
.legend-mark.stage-one { background: #b9474c; border-radius: 50%; }
.legend-mark.prescribed { background: #eb924e; }
.legend-mark.self-play { background: #557da8; clip-path: polygon(50% 0,100% 100%,0 100%); }
.win-rate-figure { max-width: 880px; margin: 0 auto; }
.baseline-definitions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.baseline-definitions dt { font-weight: 600; font-size: 18px; }
.baseline-definitions dd { margin: 7px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.baseline-definitions .mobile-win-rate { display: none; }
.sensitivity-group + .sensitivity-group { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.intervention-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.intervention-heading p { color: var(--muted); font-size: 16px; }
.sensitivity-maps { gap: 46px; max-width: 940px; margin-inline: auto; }
.sensitivity-maps figcaption { display: block; margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; min-height: 89px; gap: 30px; }
.footer-inner > p { font-size: 16px; color: #626d79; }
.footer-brand { margin-left: auto; flex: 0 0 auto; }
.footer-brand img { width: 108px; height: auto; }
.footer-inner > .icon-button { width: 30px; height: 30px; border: 0; color: #959ca6; }
.figure-dialog { width: min(calc(100% - 40px),1320px); max-height: calc(100svh - 60px); padding: 20px; background: #fff; color: var(--ink); border: 0; border-radius: 4px; overflow: auto; }
.figure-dialog::backdrop { background: rgba(22,25,30,.7); }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 15px; font-size: 16px; }
.figure-dialog > img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .site-menu { gap: 16px; }
  .opening h1 { font-size: 52px; }
  .opening-subtitle { font-size: 24px; }
  .authors { font-size: 17px; }
  .author-row { gap: 6px 18px; }
  .affiliations { max-width: 700px; }
  .match-tabs button { padding: 11px 12px; gap: 6px; }
  .score { gap: 6px; }
  .score b { font-size: 26px; }
  .execution-gallery { grid-template-columns: 1fr; gap: 34px; }
  .competition-layout { grid-template-columns: 1fr; gap: 28px; }
  .competition-intro { max-width: 760px; }
  .learning-stages { gap: 22px; }
  .landing-results, .rally-results, .sensitivity-maps { gap: 26px; }
}
@media (max-width: 700px) {
  :root { --header-height: 61px; }
  .site-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .site-menu.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-menu a { padding: 13px 0; font-size: 16px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; border: 0; }
  .header-inner { min-height: 60px; }
  .project-brand img { width: 112px; }
  .container, .reading-width { width: calc(100% - 40px); }
  .opening h1 { font-size: 42px; }
  .opening-subtitle { font-size: 21px; }
  .opening-video { object-position: 76% center; }
  .opening.is-watching .opening-video { object-position: center; }
  .opening-content { gap: 18px; }
  .opening-scroll { right: 20px; bottom: 83px; }
  .authors { font-size: 16px; }
  .affiliations { gap: 4px 14px; }
  .resource-links { margin-top: 20px; }
  .section { padding-block: 48px; }
  .abstract-section { padding-top: 39px; }
  .abstract-section p { font-size: 18px; line-height: 1.75; }
  .abstract-section h2 { margin-bottom: 19px; }
  .section-heading { margin-bottom: 23px; }
  h2 { font-size: 28px; }
  .match-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 20px; }
  .match-tabs button { grid-template-columns: 48px 1fr; height: 76px; padding: 10px; }
  .match-tabs button:nth-child(2) { border-right: 0; }
  .match-tabs button:nth-child(n+3) { border-top: 1px solid #d8dde4; }
  .match-tabs .icon { display: none; }
  .target-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 17px; }
  .target-tabs button { height: 48px; }
  .target-tabs button:nth-child(5n) { border-right: 0; }
  .target-tabs button:nth-child(n+6) { border-top: 1px solid var(--line); }
  .learning-stages { grid-template-columns: 1fr; gap: 20px; }
  .result-navigation { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-navigation a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .result-navigation a { min-height: 54px; }
  .result-block { padding-top: 32px; }
  .result-block + .result-block { margin-top: 36px; }
  .result-heading h3 { font-size: 23px; }
  .landing-results, .rally-results, .sensitivity-maps { grid-template-columns: 1fr; gap: 30px; }
  .domain-result figure { aspect-ratio: auto; }
  .baseline-definitions { grid-template-columns: 1fr; gap: 18px; }
  .baseline-definitions > div { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline; }
  .baseline-definitions dd:last-child { grid-column: 1 / -1; }
  .baseline-definitions .mobile-win-rate { display: block; margin: 0; color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.4; }
  .mobile-win-rate > span { font-size: 16px; }
  .sensitivity-maps { max-width: 460px; }
  .footer-inner { gap: 17px; min-height: 76px; }
  .footer-brand img { width: 98px; }
}
@media (max-width: 480px) {
  .opening h1 { font-size: 40px; }
  .opening-subtitle { font-size: 20px; }
  .desktop-break { display: none; }
  .authors { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 7px 16px; line-height: 1.75; }
  .author-row { display: contents; }
  .resource-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 230px; margin-inline: auto; gap: 10px; }
  .button { padding: 10px 12px; }
  .unavailable small { display: none; }
  .media-caption { flex-wrap: wrap; gap: 4px 12px; }
  .match-note { text-align: left; }
  .footer-brand img { width: 88px; }
  .figure-dialog { width: calc(100% - 24px); padding: 13px; }
}
@media (max-width: 360px) {
  .opening h1 { font-size: 34px; }
  .opening-subtitle { font-size: 19px; }
  .score b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
