:root{color:#172238;font-synthesis:none;text-rendering:optimizelegibility;--ink:#172238;--muted:#647084;--surface:#fff;--surface-subtle:#f7f8f4;--line:#dfe3dc;--navy:#172238;--purple:#55439a;--purple-dark:#403276;--lime:#d9ec76;--orange:#ef7135;--danger:#b42318;background:#f3f4ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f3f4ef;min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline-offset:2px;outline:3px solid #55439a59}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{min-height:100vh}.app-header{color:#fff;background:var(--navy);justify-content:space-between;align-items:center;gap:24px;min-height:76px;padding:0 clamp(20px,4vw,64px);display:flex;box-shadow:0 2px 16px #1722382e}.brand{flex:none;align-items:center;gap:13px;display:flex}.brand-mark{width:58px;height:52px;color:var(--lime);letter-spacing:-3px;border-right:1px solid #fff3;justify-content:center;align-items:baseline;padding-right:12px;font-weight:800;display:flex}.brand-mark span{font-size:34px}.brand-mark small{letter-spacing:-1px;font-size:18px}.brand p{color:var(--lime);letter-spacing:.12em;text-transform:uppercase;margin:0 0 2px;font-size:11px;font-weight:800}.brand h1{letter-spacing:-.02em;margin:0;font-size:18px;font-weight:680}.main-nav{scrollbar-width:none;align-self:stretch;align-items:stretch;gap:4px;display:flex}.main-nav::-webkit-scrollbar{display:none}.nav-button{color:#ffffffb8;background:0 0;border:0;padding:0 17px;font-weight:650;position:relative}.nav-button:hover{color:#fff;background:#ffffff0d}.nav-button.is-active{color:#fff}.nav-button.is-active:after{content:"";background:var(--lime);border-radius:4px 4px 0 0;height:4px;position:absolute;bottom:0;left:16px;right:16px}main{width:min(1600px,100%);margin:0 auto;padding:22px clamp(16px,3vw,44px) 40px}.intro-row{justify-content:space-between;align-items:end;gap:28px;margin-bottom:15px;display:flex}.intro-row h2,.section-heading h2{color:var(--ink);letter-spacing:-.045em;margin:2px 0 0;font-size:clamp(26px,3vw,38px);line-height:1.05}.intro-row>p{max-width:510px;color:var(--muted);margin:0;line-height:1.5}.eyebrow{color:var(--purple);letter-spacing:.1em;text-transform:uppercase;margin:0;font-size:11px;font-weight:800}.race-layout{grid-template-columns:minmax(0,1fr) 330px;grid-template-areas:"map sidebar""controls controls";align-items:stretch;gap:18px;display:grid}.race-primary{display:contents}.course-stage{background:#d7dfeb;border:1px solid #d7dcd5;border-radius:14px;grid-area:map;align-self:start;min-width:0;position:relative;overflow:hidden;box-shadow:0 12px 36px #17223817}.course-svg{touch-action:manipulation;width:100%;height:auto;display:block}.course-path-halo,.course-path{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.course-path-halo{stroke:#ffffffe6;stroke-width:6px}.course-path{stroke:var(--purple);stroke-width:2.8px}.km-marker circle{fill:var(--purple);stroke:#fff;stroke-width:2px}.km-marker text{fill:#fff;text-anchor:middle;dominant-baseline:middle;font-size:7px;font-weight:800}.course-endpoint circle{fill:#fff;stroke:var(--ink);stroke-width:3px}.course-endpoint path{fill:none;stroke:var(--ink);stroke-width:3px;stroke-linejoin:round}.finish-point path{stroke:var(--orange)}.runner-marker{cursor:pointer}.runner-dot{stroke:#fff;stroke-width:3px;filter:drop-shadow(0 2px 3px #17223880)}.runner-label{fill:#fff;text-anchor:middle;dominant-baseline:middle;pointer-events:none;text-shadow:0 1px 2px #0006;font-size:10px;font-weight:800}.runner-avatar{pointer-events:none}.runner-avatar-ring{fill:none;stroke:#fff;stroke-width:2.5px;pointer-events:none}.runner-waiting{opacity:.72}.runner-finished .runner-dot{stroke:var(--lime);stroke-width:4px}.runner-selection{fill:#ffffffd1;stroke:var(--ink);stroke-width:2px}.map-clock{z-index:2;color:#fff;background:#172238e8;border-radius:12px;min-width:182px;padding:12px 17px;position:absolute;top:13px;left:13px;box-shadow:0 5px 16px #17223838}.map-clock span{color:#ffffffa6;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1px;font-size:14px;font-weight:750;display:block}.map-clock strong{letter-spacing:.02em;font-variant-numeric:tabular-nums;font-size:32px;line-height:1}.map-caption{color:#fff;background:#172238d4;border-radius:7px;align-items:center;gap:7px;padding:6px 9px;font-size:10px;display:flex;position:absolute;bottom:10px;right:11px}.caption-line{background:var(--purple);width:24px;height:3px;box-shadow:0 0 0 1px #fff}.race-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-direction:column;grid-area:sidebar;min-height:0;padding:18px;display:flex;box-shadow:0 12px 36px #17223812}.sidebar-heading{justify-content:space-between;align-items:end;gap:8px;margin-bottom:10px;display:flex}.sidebar-heading h2{letter-spacing:-.03em;margin:2px 0 0;font-size:24px}.race-counts{max-width:120px;color:var(--muted);text-align:right;font-size:10px;line-height:1.35}.legend-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;display:grid}.legend-item{width:100%;min-width:0;color:var(--ink);text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:27px minmax(0,1fr) 7px;align-items:center;gap:7px;padding:7px;display:grid}.legend-item.is-featured{grid-template-columns:38px minmax(0,1fr) 7px}.legend-item:hover{background:#f5f6f1}.legend-item.is-selected{background:#f1f0f9;border-color:#d9d5ec}.legend-id{color:#fff;border-radius:50%;flex:none;place-items:center;width:27px;height:27px;font-size:11px;font-weight:800;display:inline-grid;box-shadow:inset 0 0 0 2px #ffffff8c}.legend-id.has-avatar{overflow:hidden;box-shadow:0 0 0 2px #fff,0 0 0 3px #c7cbd1;background:#fff!important}.legend-id.has-avatar img{object-fit:cover;object-position:center 24%;width:100%;height:100%;display:block}.legend-id.is-featured{width:38px;height:38px}.legend-copy{min-width:0;display:block}.legend-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:10px;display:block;overflow:hidden}.legend-copy small{color:var(--muted);font-variant-numeric:tabular-nums;font-size:9px}.status-dot{border-radius:50%;width:7px;height:7px}.status-waiting{background:#a4acb9}.status-running{background:#31835e;box-shadow:0 0 0 3px #31835e21}.status-finished{background:var(--purple)}.runner-detail{border-top:1px solid var(--line);margin-top:13px;padding-top:13px}.detail-title{align-items:center;gap:9px;display:flex}.detail-title p{margin:0 0 2px;font-size:13px;font-weight:750}.status-label{font-size:10px;font-weight:700}.status-text-waiting{color:#778092}.status-text-running{color:#24714f}.status-text-finished{color:var(--purple)}.detail-grid{grid-template-columns:1fr 1fr;gap:9px 14px;margin:12px 0 0;display:grid}.detail-grid div{min-width:0}.detail-grid dt{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;font-size:9px}.detail-grid dd{font-variant-numeric:tabular-nums;margin:0;font-size:11px;font-weight:700}.simulation-controls{background:var(--surface);border:1px solid var(--line);border-radius:12px;grid-area:controls;margin-top:0;padding:14px 17px;box-shadow:0 8px 24px #1722380d}.transport-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.button{min-height:36px;color:var(--ink);background:#fff;border:1px solid #cfd5cd;border-radius:8px;padding:8px 13px;font-size:12px;font-weight:700}.button:hover:not(:disabled){background:#f4f5f1;border-color:#aeb6aa}.button:disabled{cursor:not-allowed;opacity:.45}.button-primary{color:#fff;background:var(--purple);border-color:var(--purple)}.button-primary:hover:not(:disabled){color:#fff;background:var(--purple-dark);border-color:var(--purple-dark)}.button-danger{color:var(--danger);border-color:#f1b7b2}.button-icon{width:36px;padding:6px;font-size:19px}.play-button{justify-content:center;align-items:center;gap:7px;min-width:116px;display:inline-flex}.speed-control{color:var(--muted);align-items:center;gap:7px;margin-left:auto;font-size:11px;font-weight:700;display:flex}select,input{color:var(--ink);background:#fff;border:1px solid #cfd5cd;border-radius:6px}select{height:36px;padding:0 28px 0 10px}.timeline-row{grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:10px;margin-top:13px;display:grid}.timeline-bound{color:var(--muted);font-variant-numeric:tabular-nums;font-size:10px;font-weight:700}.timeline-bound:last-child{text-align:right}.timeline-slider{display:block}.timeline-slider input{width:100%;accent-color:var(--purple)}.config-section,.calibration-section{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:clamp(18px,3vw,34px);box-shadow:0 12px 36px #1722380f}.section-heading{justify-content:space-between;align-items:end;gap:22px;margin-bottom:24px;display:flex}.section-heading h2{font-size:clamp(25px,3vw,34px)}.section-heading p:last-child{color:var(--muted);margin:8px 0 0;font-size:13px}.section-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.inline-message,.validation-summary{color:#285b34;background:#edf6ee;border:1px solid #cbe2cf;border-radius:7px;margin:-8px 0 15px;padding:9px 12px;font-size:12px}.validation-summary{color:#7f1d1d;background:#fef2f2;border-color:#fecaca}.table-wrap{overflow-x:auto}.corral-table{border-collapse:collapse;width:100%;font-size:11px}.corral-table th{color:var(--muted);text-align:left;border-bottom:2px solid var(--line);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;padding:8px 7px;font-size:9px}.corral-table td{vertical-align:top;border-bottom:1px solid #edf0ea;padding:7px}.corral-table tr:hover td{background:#fafbf8}.corral-table input{height:32px;padding:5px 7px}.corral-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--purple)}.cell-center{text-align:center}.compact-input{width:54px}.wide-input{width:180px}.time-input{font-variant-numeric:tabular-nums;width:94px}.number-input{width:84px}.color-input{width:38px;padding:3px!important}.pace-cell{min-width:88px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.has-error{background:#fff7f6!important;border-color:#d92d20!important}.field-error,.field-warning{color:#b42318;max-width:150px;margin-top:3px;font-size:8px;line-height:1.2;display:block}.field-warning{color:#9a6700}.remove-button{color:#9f3131;background:0 0;border:0;border-radius:6px;width:30px;height:30px;font-size:21px}.remove-button:hover{background:#fff0ef}.table-footer{justify-content:space-between;align-items:center;gap:15px;margin-top:16px;display:flex}.text-button{color:var(--purple);text-underline-offset:3px;background:0 0;border:0;padding:6px 0;font-size:11px;font-weight:750;text-decoration:underline}.calibration-workspace{grid-template-columns:minmax(0,1fr) 260px;gap:18px;display:grid}.calibration-map-wrap{min-width:0}.calibration-map{border:1px solid var(--line);touch-action:none;cursor:crosshair;background:#d7dfeb;border-radius:10px;width:100%;height:auto;display:block;overflow:hidden}.calibration-path-halo,.calibration-path{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.calibration-path-halo{stroke:#fff;stroke-width:7px;opacity:.95}.calibration-path{stroke:var(--purple);stroke-width:3px}.calibration-point{fill:#fff;stroke:var(--purple);stroke-width:2.5px;cursor:grab}.calibration-point.is-selected{fill:var(--lime);stroke:var(--ink)}.calibration-point:active{cursor:grabbing}.point-index{fill:var(--ink);paint-order:stroke;stroke:#fff;stroke-width:3px;text-anchor:middle;pointer-events:none;font-size:8px;font-weight:800}.calibration-endpoint circle{fill:var(--ink);stroke:#fff;stroke-width:2px}.calibration-endpoint.finish circle{fill:var(--orange)}.calibration-endpoint text,.calibration-km text{fill:#fff;text-anchor:middle;dominant-baseline:middle;font-size:8px;font-weight:800}.calibration-km circle{fill:var(--purple);stroke:#fff;stroke-width:1.5px}.calibration-km text{font-size:6px}.calibration-status{color:#414c5d;background:#f5f6f2;border-radius:7px;min-height:33px;margin-top:8px;padding:8px 11px;font-size:11px}.calibration-tools{border:1px solid var(--line);background:#f7f8f4;border-radius:10px;padding:17px}.calibration-tools h3{margin:0 0 11px;font-size:14px}.mode-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}.mode-button{min-height:38px;color:var(--ink);background:#fff;border:1px solid #d5dad2;border-radius:7px;padding:7px;font-size:11px;font-weight:750}.mode-button.is-active{color:#fff;background:var(--purple);border-color:var(--purple)}.field-label{color:var(--muted);gap:5px;margin-top:12px;font-size:10px;font-weight:700;display:grid}.field-label input,.field-label select{width:100%;height:34px;padding:5px 8px}.tool-separator{background:var(--line);height:1px;margin:16px 0}.tool-summary{align-items:baseline;gap:7px;display:flex}.tool-summary strong{color:var(--purple);font-size:26px}.tool-summary span{color:var(--muted);font-size:10px}.selected-point-panel{border-top:1px solid var(--line);margin-top:14px;padding-top:13px}.selected-point-panel p{margin:0 0 4px;font-size:11px}.selected-point-panel .button{width:100%;margin-top:11px}.tool-actions{gap:7px;margin-top:16px;display:grid}.tool-actions .text-button{margin-top:3px}.about-section{max-width:1180px;margin:0 auto}.about-hero{color:#fff;background:var(--navy);border-radius:18px;grid-template-columns:minmax(0,1.55fr) minmax(300px,.7fr);min-height:460px;display:grid;overflow:hidden;box-shadow:0 18px 54px #1722382e}.about-hero-copy{align-self:center;padding:clamp(32px,5vw,68px)}.about-hero .eyebrow{color:var(--lime)}.about-hero h2{letter-spacing:-.065em;margin:11px 0 20px;font-size:clamp(42px,6vw,76px);line-height:.93}.about-hero h2 span{color:var(--lime)}.about-lead{color:#ffffffc7;max-width:720px;margin:0;font-size:clamp(15px,1.7vw,19px);line-height:1.62}.about-lead strong{color:#fff}.about-makers{flex-wrap:wrap;align-items:center;gap:10px;margin-top:30px;display:flex}.maker-card{color:#fff;background:#ffffff12;border:1px solid #ffffff24;border-radius:10px;align-items:center;gap:10px;min-width:240px;padding:10px 13px;text-decoration:none;transition:transform .18s,background .18s;display:flex}.maker-card:hover{background:#ffffff1f;transform:translateY(-2px)}.maker-card small,.maker-card strong{display:block}.maker-card small{color:#ffffff8c;letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px;font-size:9px}.maker-card strong{color:#fff;font-size:13px}.maker-mark{letter-spacing:-.02em;border-radius:50%;flex:none;place-items:center;width:38px;height:38px;font-size:11px;font-weight:900;display:grid}.runner-mark{color:var(--navy);background:var(--lime)}.chatgpt-mark{color:#fff;background:var(--purple)}.maker-plus{color:var(--lime);font-size:22px;font-weight:800}.about-race-poster{min-height:460px;color:var(--navy);background:var(--lime);flex-direction:column;justify-content:space-between;padding:42px 34px;display:flex;position:relative;overflow:hidden}.about-race-poster:before{content:"";border:42px solid #17223814;border-radius:50%;width:290px;height:290px;position:absolute;top:47%;left:54%;transform:translate(-50%,-50%)}.poster-distance,.poster-place{z-index:1;position:relative}.poster-distance{letter-spacing:-.06em;align-items:baseline;display:flex}.poster-distance strong{font-size:clamp(78px,9vw,128px);line-height:.8}.poster-distance span{font-size:28px;font-weight:800}.poster-distance small{letter-spacing:.08em;margin-left:8px;font-size:14px;font-weight:900}.poster-route{z-index:1;height:96px;margin:14px 0;position:relative;transform:rotate(-7deg)}.poster-route:before{content:"";border:7px solid var(--purple);border-left-color:#0000;border-radius:50% 35% 48% 30%;position:absolute;inset:20px 8px 26px}.poster-route i{background:var(--navy);border:3px solid var(--lime);width:13px;height:13px;box-shadow:0 0 0 2px var(--navy);border-radius:50%;position:absolute}.poster-route i:first-child{top:50%;left:8%}.poster-route i:nth-child(2){top:19%;left:38%}.poster-route i:nth-child(3){bottom:13%;right:23%}.poster-route i:nth-child(4){background:var(--orange);top:43%;right:6%}.poster-place{text-transform:uppercase;justify-content:space-between;align-items:end;gap:12px;font-weight:850;display:flex}.poster-place span{max-width:120px;font-size:20px;line-height:.9}.poster-place strong{letter-spacing:-.05em;font-size:38px;line-height:.85}.about-quote{color:var(--ink);border:1px solid var(--line);letter-spacing:-.045em;background:#fff;border-radius:15px;margin:18px 0;padding:clamp(26px,4vw,44px);font-size:clamp(25px,3.3vw,42px);font-weight:790;line-height:1.1}.about-quote>span{color:var(--purple);letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px;font-size:10px;font-weight:850;display:block}.about-quote cite{color:var(--muted);letter-spacing:0;margin-top:13px;font-size:12px;font-style:normal;font-weight:550;display:block}.about-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.about-card{min-height:220px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:14px;flex-direction:column;padding:25px;display:flex}.about-card-number{color:var(--purple);font-size:11px;font-weight:850}.about-card h3{letter-spacing:-.035em;margin:auto 0 10px;font-size:22px}.about-card p{color:var(--muted);margin:0;font-size:13px;line-height:1.55}.about-card-accent{background:var(--purple);border-color:var(--purple)}.about-card-accent .about-card-number{color:var(--lime)}.about-card-accent h3{color:#fff}.about-card-accent p{color:#ffffffb8}.about-note{background:#e7e9e2;border-radius:15px;grid-template-columns:1.25fr 1fr;align-items:end;gap:42px;margin-top:18px;padding:clamp(24px,4vw,42px);display:grid}.about-note h3{letter-spacing:-.05em;max-width:620px;margin:8px 0 0;font-size:clamp(27px,3.4vw,42px);line-height:1.02}.about-note>p{color:var(--muted);margin:0;font-size:12px;line-height:1.65}.app-footer{width:min(1600px,100%);color:var(--muted);justify-content:space-between;align-items:flex-end;gap:24px;margin:0 auto;padding:20px clamp(16px,3vw,44px) 28px;font-size:10px;display:flex}.app-footer a{color:var(--purple)}.footer-identity{flex:none;gap:4px;display:grid}.footer-identity>span:first-child{color:var(--ink);letter-spacing:.02em;font-weight:800}.footer-signature{color:var(--ink);align-items:center;gap:6px;font-size:12px;display:flex}.footer-signature a{font-weight:850;text-decoration:none}.footer-signature a:hover{text-decoration:underline}.footer-credits{text-align:right;max-width:760px;line-height:1.45}@media (width>=821px) and (width<=1280px){.race-layout{grid-template-areas:"primary sidebar";align-items:start}.race-primary{grid-area:primary;grid-template-columns:minmax(0,1fr);align-self:start;gap:18px;min-width:0;display:grid}.race-primary>.course-stage,.race-primary>.simulation-controls{grid-area:auto;width:100%}.race-sidebar{align-self:stretch}}@media (width<=1100px){.race-layout{grid-template-columns:minmax(0,1fr) 285px}.legend-list{grid-template-columns:1fr;max-height:290px;overflow-y:auto}.race-sidebar{padding:14px}.detail-grid{gap:7px}}@media (width<=820px){.app-header{flex-direction:column;align-items:stretch;gap:8px;padding:10px 18px 0}.brand{align-self:flex-start}.main-nav{min-height:44px;overflow-x:auto}.nav-button{min-width:max-content;padding:0 13px}.race-layout,.calibration-workspace{grid-template-columns:1fr}.race-layout{grid-template-areas:"map""controls""sidebar"}.legend-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.intro-row,.section-heading{flex-direction:column;align-items:flex-start}.intro-row>p{max-width:none}.section-actions{justify-content:flex-start}.speed-control{margin-left:0}.about-hero{grid-template-columns:1fr}.about-race-poster{min-height:300px}.about-grid{grid-template-columns:1fr}.about-card{min-height:185px}.about-note{grid-template-columns:1fr;gap:20px}.app-footer{flex-direction:column;align-items:flex-start;gap:10px}.footer-credits{text-align:left}}@media (width<=520px){main{padding-inline:11px}.intro-row h2{font-size:27px}.map-clock{border-radius:8px;min-width:145px;padding:8px 11px;top:7px;left:7px}.map-clock span{margin-bottom:1px;font-size:13px}.map-clock strong{font-size:24px}.map-caption,.km-marker{display:none}.runner-dot{r:16px}.runner-marker.is-featured .runner-dot{r:22px}.about-hero-copy{padding:30px 22px}.about-hero h2{font-size:43px}.maker-card{width:100%;min-width:0}.maker-plus{text-align:center;width:100%}.about-race-poster{min-height:270px;padding:30px 24px}.poster-distance strong{font-size:82px}.about-quote{padding:24px 21px;font-size:27px}.legend-list{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}.transport-row .button:not(.play-button):not(.button-icon){flex:calc(50% - 8px)}.play-button{flex:calc(100% - 44px)}.speed-control{justify-content:space-between;width:100%}.timeline-row{grid-template-columns:40px minmax(0,1fr) 40px;gap:5px}.config-section,.calibration-section{padding:15px 11px}.table-footer{flex-direction:column;align-items:flex-start}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
