:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #59636e;
  --line: #e3e6ea;
  --card: #f7f8fa;
  --accent: #2f5d8a;
  --rod: #2f5d8a;
  --torque: #d1861f;
  --active: #fdecc4;
  --max: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }


/* home page */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topbar nav a { margin-left: 20px; font-size: 0.95rem; color: var(--muted); }


.section { padding: 48px 0 8px; }
.section h2 { font-size: 1.5rem; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }

.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.example { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s; }
.example:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(31, 35, 40, 0.08); transform: translateY(-2px); }
.example canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--card); border-bottom: 1px solid var(--line); }
.example .body { padding: 16px 18px 18px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--accent); background: #eaf0f6; border-radius: 4px; padding: 2px 8px; margin-bottom: 8px; }
.example h3 { font-size: 1.1rem; margin: 0 0 4px; }
.example p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.coming { margin: 28px 0 56px; border: 1px dashed #c4ccd5; border-radius: 10px; padding: 20px 22px; background: var(--card); }
.coming h3 { font-size: 1.05rem; margin: 0 0 6px; }
.coming p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 0.85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

/* scenario pages */
.page-head .intro { max-width: 760px; margin: 0; }


.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.player { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.player canvas { display: block; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; background: var(--bg); border-radius: 6px; }
.player-error { color: #a33; font-size: 0.9rem; }
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 12px 0 10px; font-size: 0.88rem; color: var(--muted); }
.readouts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.controls { display: flex; align-items: center; gap: 10px; }
.controls input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.controls button, .controls select, .episodes button {
  font: inherit; font-size: 0.88rem; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 6px; padding: 5px 12px; cursor: pointer;
}
.controls button { min-width: 72px; }
.episodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.episodes button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.note { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }

.rules h3 { font-size: 1rem; margin: 18px 0 6px; }
.rules h3:first-child { margin-top: 0; }
.rules p { margin: 0; }
.rules table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 4px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.rules th { font-weight: 600; color: var(--muted); }
.rules td:first-child { font-weight: 600; }
.rules tr[data-rule] { transition: background-color 0.15s; }
.rules tr.active { background: var(--active); box-shadow: inset 3px 0 0 var(--torque); }

.clock { font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 52px; text-align: right; }
.rules > p { margin: 0 0 10px; }
.rules > p b { margin-right: 6px; }
.rules table { margin: 6px 0 0; }
.rules td { white-space: nowrap; }
.rules td:last-child { white-space: normal; }
@media (max-width: 480px) { .rules td { white-space: normal; } }

/* shared header and footer */

/* page head of a system page */
.page-head { padding: 40px 0 32px; background: linear-gradient(180deg, #f3f6fa 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 2rem; margin: 6px 0 8px; letter-spacing: -0.01em; }
.crumbs { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* one task */
.task { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.task-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.task-head h2 { font-size: 1.25rem; margin: 0; }
.task-head .tag { margin: 0; }
.task .split { padding: 22px; }
.task .player { background: var(--card); }
.rules .desc { font-size: 1.02rem; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rules .run { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.rules .run p { margin: 0; }
@media (max-width: 480px) { .task .split { padding: 14px; } .task-head { padding: 12px 14px; } }

/* refinements */
body { -webkit-font-smoothing: antialiased; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; color: var(--accent); }
.topbar nav a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 80px 0 72px; background: radial-gradient(1200px 400px at 80% 0%, #e6eef7 0%, rgba(230, 238, 247, 0) 70%), linear-gradient(180deg, #f6f8fb 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 22px; }
.hero h1 .for { color: var(--muted); font-weight: 700; }
.hero h1 .rotate { color: var(--accent); transition: opacity 0.25s; }
.hero .lead { font-size: 1.1rem; line-height: 1.65; max-width: 600px; margin: 0 0 22px; }
.paper { font-size: 0.92rem; color: var(--muted); margin: 0 0 26px; line-height: 1.5; }
.paper i { color: var(--text); }
.cta { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 8px; }
.cta:hover { text-decoration: none; background: #264d73; }
.hero-anim { width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: center; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(31, 35, 40, 0.08); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-anim { max-width: 300px; } .hero { padding: 48px 0; } }

.section h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.example { border-radius: 12px; }
.example canvas { background: linear-gradient(180deg, #f6f8fb, #eef2f7); }
.task { box-shadow: 0 4px 18px rgba(31, 35, 40, 0.04); }
.page-head h1 { font-weight: 800; letter-spacing: -0.02em; }

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-grid > div { max-width: 640px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 40%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 40%, #000 70%); }
.hero-bg .f { fill: currentColor; }
@media (max-width: 860px) { .hero-bg { opacity: 0.1; } }

.defs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0 0 14px; align-items: baseline; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; }
.katex { font-size: 1.05em; }

.run h3 { font-size: 1rem; margin: 0 0 12px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #264d73; color: #fff; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.terminal { position: relative; background: #1f2630; border-radius: 8px; }
.terminal pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: #e6edf3; font-size: 0.85rem; line-height: 1.7; }
.terminal .prompt { color: #7d8a99; user-select: none; margin-right: 6px; }
.terminal .copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 0.75rem; color: #c9d1d9; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.terminal .copy:hover { background: rgba(255,255,255,0.16); }
.task .split { align-items: stretch; }
.task .rules { display: flex; flex-direction: column; }
.task .rules .run { margin-top: auto; }
.task .rules .note { margin-bottom: 22px; }

/* centred hero, sketches on both sides */
.hero-grid > div { max-width: 760px; margin: 0 auto; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero h1 { margin-bottom: 24px; }
.paper { margin-bottom: 0; }
.hero-bg { -webkit-mask-image: radial-gradient(ellipse 38% 70% at 50% 50%, transparent 0%, rgba(0,0,0,0.25) 60%, #000 100%);
                   mask-image: radial-gradient(ellipse 38% 70% at 50% 50%, transparent 0%, rgba(0,0,0,0.25) 60%, #000 100%); }

/* page fills the window so the footer sits at the bottom */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* footer */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--card); padding: 40px 0 24px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: block; }
.foot-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.4fr; gap: 32px; }
.foot-about p { margin: 10px 0 0; max-width: 320px; line-height: 1.55; }
.site-foot h4 { margin: 4px 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--accent); text-decoration: none; }
.site-foot .mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.site-foot .mail svg { width: 18px; height: 18px; color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.socials a { color: var(--muted); }
.socials svg { width: 22px; height: 22px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.foot-bottom a { color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* left-aligned hero; task sketches as an ordered panel on the right */
.hero-grid > div { margin: 0; text-align: left; max-width: 600px; }
.hero .lead { margin-left: 0; }
.hero-bg { -webkit-mask-image: none; mask-image: none; opacity: 1; color: #9fb3c8; }
.hero-bg .tile { fill: rgba(255, 255, 255, 0.65); stroke: #dbe4ee; stroke-width: 1; }
.paper-link { color: var(--text); }
.paper-link:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 980px) { .hero-bg { display: none; } }

.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
.hero-grid > div { max-width: none; }
.hero-tiles { width: 100%; height: auto; color: #9fb3c8; }
.hero-tiles .tile { fill: rgba(255, 255, 255, 0.7); stroke: #dbe4ee; stroke-width: 1; }
.hero-tiles .f { fill: currentColor; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-tiles { display: none; } }

/* why section */
.why { padding-top: 16px; }
.why-text { max-width: 820px; margin: 0 0 24px; line-height: 1.7; }
.figure { margin: 0; }
.figure-svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 700px) { .figure { overflow-x: auto; } .figure-svg { min-width: 680px; } }

.why h2 { margin-bottom: 20px; }
.burden { margin-top: 22px; border-left: 3px solid var(--torque); background: #fbf6ee; border-radius: 0 10px 10px 0; padding: 16px 20px; max-width: 820px; }
.burden h3 { margin: 0 0 10px; font-size: 1.02rem; }
.burden dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.burden dt { font-weight: 600; color: var(--muted); }
.burden dd { margin: 0; }
.burden .to { color: var(--torque); font-weight: 700; margin: 0 4px; }

/* sketches sit behind the text instead of beside it */
.hero-grid { display: block; position: relative; }
.hero-grid > div { position: relative; z-index: 1; max-width: 760px; }
.hero-tiles { position: absolute; z-index: 0; right: 0; top: 50%; transform: translateY(-50%); width: 46%; max-width: 520px; opacity: 0.45; pointer-events: none; }
@media (max-width: 980px) { .hero-tiles { display: none; } }
.hero-tiles { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 35%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 35%, #000 70%); opacity: 0.6; }
.hero .lead { max-width: 640px; }

/* flow modules under figures */
.flow { margin-top: 22px; border-radius: 12px; padding: 18px 20px; }
.flow h3 { margin: 0 0 12px; font-size: 1.02rem; }
.burden.flow { border-left: none; background: #fbf6ee; border: 1px solid #ecd3ab; max-width: none; }
.flow-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px 150px; align-items: center; gap: 12px; padding: 8px 0; }
.flow-row + .flow-row { border-top: 1px dashed #ecd3ab; }
.flow-label { font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.causes { display: flex; flex-wrap: wrap; gap: 8px; }
.causes span { background: #fff; border: 1px solid #e4d2b5; border-radius: 999px; padding: 3px 12px; font-size: 0.9rem; }
.flow-arrow { height: 2px; background: var(--torque); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 9px solid var(--torque); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.scalar { justify-self: start; background: #fff; border: 2px solid var(--torque); color: #a8640f; font-weight: 700; border-radius: 8px; padding: 4px 12px; font-size: 0.92rem; }
.flow-row.decode { grid-template-columns: 110px 1fr; }
.decode-text { display: inline-flex; align-items: center; gap: 10px; }
.qm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--torque); color: #fff; font-weight: 700; font-size: 0.85rem; }
@media (max-width: 700px) { .flow-row { grid-template-columns: 1fr; } .flow-arrow { width: 40px; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; background: #f3f7fb; border: 1px solid #cfdbe8; }
.step { position: relative; padding: 18px 20px 18px 20px; }
.step + .step { border-left: 1px solid #cfdbe8; }
.step + .step::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; background: #f3f7fb; border-top: 1px solid #cfdbe8; border-right: 1px solid #cfdbe8; transform: rotate(45deg); }
.step .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.step h4 { margin: 0 0 4px; font-size: 0.98rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: none; } .step:nth-child(n+3) { border-top: 1px solid #cfdbe8; } .step:nth-child(3)::before { display: none; } }
.flow-row { grid-template-columns: 110px auto 56px auto; justify-content: start; }
.flow-row.decode { grid-template-columns: 110px auto; }

/* principles block */
.principles { background: var(--bg); border: 1px solid var(--line); }
.principles-def { margin: 0 0 14px; max-width: 900px; }
.pr-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px dashed var(--line); }
.pr-task { font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.pr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-list span { background: #eaf0f6; color: var(--accent); border-radius: 999px; padding: 3px 12px; font-size: 0.88rem; font-style: italic; }
.pr-more { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 600px) { .pr-row { grid-template-columns: 1fr; } }

/* implementation */
.eqs { display: grid; gap: 14px; }
.eq { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--bg); }
.eq h4 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.eq h4 .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8rem; }
.eq .math { background: var(--card); border-radius: 8px; padding: 2px 12px; overflow-x: auto; }
.eq p { margin: 10px 0 0; color: var(--text); font-size: 0.95rem; line-height: 1.65; max-width: 900px; }

.norms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.norms li { background: #f3f7fb; border: 1px solid #dbe5ef; border-radius: 10px; padding: 12px 14px; }
.norms b { display: block; color: var(--accent); font-size: 0.95rem; margin-bottom: 2px; }
.norms span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .norms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .norms { grid-template-columns: 1fr; } }

.task-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tp { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--bg); }
.tp svg { width: 76px; height: 76px; flex: none; color: #6b7f95; background: var(--card); border-radius: 10px; }
.tp .f { fill: currentColor; }
.tp h4 { margin: 0 0 2px; font-size: 0.95rem; }
.tp p { margin: 0; color: var(--accent); font-style: italic; font-size: 0.92rem; }
@media (max-width: 860px) { .task-principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .task-principles { grid-template-columns: 1fr; } }
.eqs.two { grid-template-columns: 1fr 1fr; margin-top: 22px; }
@media (max-width: 860px) { .eqs.two { grid-template-columns: 1fr; } }
.eqs.two .eq p { margin-top: 8px; color: var(--muted); }
.legend { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); }

/* reward figure and burden flow in blue and gray */
.burden.flow { background: #f3f7fb; border: 1px solid #cfdbe8; }
.burden .flow-row + .flow-row { border-top-color: #cfdbe8; }
.burden .causes span { background: #fff; border-color: #d5dde6; color: var(--text); }
.burden .flow-arrow { background: var(--accent); }
.burden .flow-arrow::after { border-left-color: var(--accent); }
.burden .scalar { border-color: var(--accent); color: var(--accent); }
.burden .qm { background: var(--accent); }
/* larger titles of the reward decoding burden and principles of behavior blocks */
.burden h3 { font-size: 1.3rem; margin-bottom: 16px; }
.principles h3 { font-size: 1.3rem; margin-bottom: 14px; }
.example svg.thumb { display: block; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(180deg, #f6f8fb, #eef2f7); border-bottom: 1px solid var(--line); }
.acrobot .upper { animation: acro-upper 3.2s ease-in-out infinite alternate; }
.acrobot .lower { animation: acro-lower 3.2s ease-in-out infinite alternate; }
@keyframes acro-upper { from { transform: rotate(-50deg); } to { transform: rotate(50deg); } }
@keyframes acro-lower { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .acrobot .upper, .acrobot .lower { animation: none; transform: rotate(30deg); } }
/* training facts in the right column; training code across the bottom of the card */
.rules .train-stats { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.task .run-full { margin: 0; padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; align-items: center; }
.task .run-full h3 { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .task .run-full { grid-template-columns: 1fr; } }
/* right column as two cards matching the player card */
.task .split { align-items: stretch; }
.task .rules { display: flex; flex-direction: column; gap: 16px; }
.task .rules .panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.task .rules .panel:last-child { flex: 1; }
.task .rules .panel h3 { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.task .rules .panel table { background: var(--bg); border-radius: 6px; }
.task .rules .note { margin-bottom: 0; }
.task .rules .defs:last-child { margin-bottom: 0; }
.task .rules .train-stats { margin-top: 0; padding-top: 0; border-top: none; }
.task .rules .speed { margin: 0 0 12px; font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
/* the two right-hand cards share the height of the player equally */
.task .rules .panel { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.task .rules .panel h3 { margin-bottom: auto; padding-bottom: 12px; }
.task .rules .panel > :last-child { margin-bottom: auto; }
.lander .craft { animation: lander-hover 3s ease-in-out infinite alternate; }
.lander .flame { transform-origin: 160px 118px; animation: lander-flame 0.18s ease-in-out infinite alternate; }
.lander .flame.side { transform-origin: 131px 95px; animation-duration: 0.23s; }
@keyframes lander-hover { from { transform: translateY(6px); } to { transform: translateY(-10px); } }
@keyframes lander-flame { from { transform: scale(1, 0.75); } to { transform: scale(1, 1.1); } }
@media (prefers-reduced-motion: reduce) { .lander .craft, .lander .flame { animation: none; } }
/* placeholder card on a category page whose examples are in preparation */
.task.wip { padding: 72px 24px; text-align: center; border-style: dashed; border-color: #c4ccd5; background: var(--card); box-shadow: none; }
.task.wip h2 { margin: 0 0 8px; font-size: 1.4rem; }
.task.wip p { margin: 0; color: var(--muted); }
.task .player { display: flex; flex-direction: column; justify-content: center; }
