:root{--ink:#243d36;--teal:#147e72;--teal-dark:#0f6259;--paper:#fffef8;--sky:#bde6f4;--grass:#cae5aa;--gold:#f1bc4b;--muted:#687b70;--line:#dce5d8;--lilac:#b4a4d0;--coral:#d98c72;font-family:"Avenir Next","Trebuchet MS",sans-serif;color:var(--ink);background:#f5f8f1;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{color:inherit}button,a,input,select,summary{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #23978a}a{color:inherit}h1,h2,h3,p{margin:0}button{border:0}button,a,select{touch-action:manipulation}[hidden]{display:none!important}
.site-header{max-width:1440px;margin:auto;padding:23px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:-.9px}.brand strong{font-weight:850}.brand-mark{width:39px;height:43px}.site-header nav{display:flex;gap:27px;align-items:center;font-size:13px;font-weight:650}.text-button,.icon-button{padding:0;background:transparent;color:var(--muted);font-size:13px;font-weight:650}.text-button:hover,.repo-link:hover{color:var(--teal)}.repo-link{text-decoration:none}.repo-link span{font-size:17px}.host-chip{display:flex;gap:7px;align-items:center;background:#e8efe3;border:1px solid #dbe6d4;padding:8px 12px;border-radius:30px;font-size:12px;white-space:nowrap}.status-dot{width:7px;height:7px;background:#6d9d5a;border-radius:50%}
main{max-width:1440px;margin:auto;padding:0 48px}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:31px 0 25px}.intro-note{font-size:13px;font-weight:700;color:var(--teal);margin-bottom:8px}.tiny-leaf{font-size:21px;vertical-align:middle;margin-right:5px}h1{font-size:clamp(29px,3.1vw,44px);line-height:1.15;letter-spacing:-1.7px;font-weight:800}.intro-description{font-size:14px;color:var(--muted);line-height:1.65;margin-top:10px}.mobile-break{display:none}.mode-controls{min-width:242px;display:grid;gap:6px;font-size:12px;color:var(--muted)}.mode-controls label{font-weight:650}.mode-controls select{border:1px solid #d2dfcf;border-radius:12px;background:var(--paper);padding:11px 32px 11px 13px;color:var(--ink);font-size:13px;font-weight:700}.mode-controls>span{font-size:10.5px;line-height:1.4}
.scene-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:20px}.scene-button{text-align:left;display:flex;align-items:center;gap:14px;background:#fffef8;border:1px solid #dce5d8;border-radius:17px;padding:14px 17px;transition:background .15s,border-color .15s;position:relative;min-width:0}.scene-button:hover{background:#edf4e8}.scene-button[aria-pressed=true]{border:2px solid var(--teal);padding:13px 16px;background:#eaf3e8}.scene-button[aria-pressed=true]:after{content:'✓';position:absolute;right:13px;top:12px;font-size:11px;color:var(--teal)}.scene-illustration{width:44px;height:44px;flex-shrink:0;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eee5cd;color:#917247}.scene-button:nth-child(2) .scene-illustration{background:#eee6f2;color:#88769a}.scene-button:nth-child(3) .scene-illustration{background:#f2e8bd;color:#a18a43}.scene-illustration svg{height:27px;width:27px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.scene-button strong{display:block;font-size:14px;margin-bottom:3px}.scene-button small{display:block;font-size:11px;color:var(--muted);line-height:1.5;padding-right:9px}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 357px;gap:19px;align-items:stretch}.village-panel{border:1px solid #cddcbe;border-radius:23px;overflow:hidden;background:#e8f0da;display:flex;flex-direction:column;box-shadow:0 5px 0 #e2e8d9}.village-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 23px 13px;gap:14px;background:#f2f6e9}.day-badge{font-size:11px;color:#829266;font-weight:700}.village-heading h2{font-size:20px;margin-top:3px;letter-spacing:-.5px}.tick-badge{font-size:11px;border:1px solid #d1dfc7;background:#fffef5;border-radius:16px;padding:6px 10px;white-space:nowrap}.village-stage{flex:1;display:flex;align-items:center;background:#b9d6a2;overflow:hidden;min-height:350px}.village-svg{width:100%;height:auto;display:block;overflow:hidden}.map-label{font-family:inherit;font-size:10px;font-weight:800;fill:#fff4d6;paint-order:stroke;stroke:#9b784f;stroke-width:2px}.market-label{fill:#52684e;stroke:#d9e5b8;stroke-width:5px;font-size:13px}.small-map-label{fill:#70815e;font-size:10px;font-weight:650}.resident-shadow{fill:#536a42;opacity:.25}.resident-name{font-family:inherit;font-size:10px;font-weight:700;fill:#52624e;paint-order:stroke;stroke:#d7e9b9;stroke-width:4px;transition:transform .8s ease}.active-name{fill:#126b61;font-weight:900;stroke:#f7fff0;stroke-width:5px}.resident{transition:transform .8s ease}.active-resident .resident-shadow{fill:#147e72;opacity:.45;stroke:#fff;stroke-width:3px}.map-caption{display:flex;gap:17px;align-items:center;flex-wrap:wrap;padding:13px 20px;background:#eff4e5;color:#71836a;font-size:10px;border-top:1px solid #d8e4ce}.map-caption>span:last-child{margin-left:auto;color:#4d725e}.map-key{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.resident-key{background:#b58165}.visitor-key{background:#827090}
.story-panel{background:var(--paper);border:1px solid #dce4d5;border-radius:22px;padding:20px;box-shadow:0 5px 0 #e6eadf;display:flex;flex-direction:column}.story-topline{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:#789078;margin-bottom:12px}.operation-badge{padding:4px 8px;background:#edf1e8;color:#687b63;font-size:10px;border-radius:8px;font-weight:650}.operation-badge.live{background:#dbf0e9;color:#137768}.speaker-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}.speaker-heading p{font-weight:800;font-size:15px}.speaker-heading>div>span{font-size:10.5px;color:var(--muted)}.portrait{display:inline-block;background-image:url('./assets/character-cast.png');background-repeat:no-repeat;background-size:300% 200%;aspect-ratio:1;width:78px;flex-shrink:0}.portrait-mira{background-position:0 0}.portrait-pip{background-position:50% 0}.portrait-bea{background-position:100% 0}.portrait-gus{background-position:0 100%}.portrait-luna{background-position:50% 100%}.portrait-nimbus{background-position:100% 100%}.portrait-small{width:46px}.resident-initial{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#fff;background:#ad9171;font-weight:750;font-size:18px}blockquote{margin:0;border-radius:12px 12px 12px 2px;background:#f3eddb;border:1px solid #e6dcc2;color:#665742;font-size:13px;font-weight:650;line-height:1.65;padding:13px 15px;position:relative}blockquote:before{content:'“';font-family:Georgia,serif;font-size:32px;line-height:.6;display:block;color:#b6a279;margin:5px 0 0}.fact-strip{font-size:10.5px;line-height:1.5;display:flex;flex-wrap:wrap;gap:5px 12px;color:#7e856f;padding:11px 0 13px}.fact-strip strong{color:#5d735d;font-weight:700}.choice-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.choice-heading h3{font-size:11px;color:#758475;font-weight:700}.icon-button{border:1px solid #d3ddce;border-radius:50%;width:17px;height:17px;font-size:10px}.tools{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.tool-chip{border:1px solid #dfe5d8;border-radius:9px;padding:7px 8px;font-size:10px;font-weight:700;display:flex;align-items:center;gap:5px;background:#f8faf3;flex:1;justify-content:center;white-space:nowrap}.tool-chip .tool-symbol{font-size:14px;line-height:12px}.tool-chip.selected{background:#e0f0e5;border-color:#93baa0;color:#1d785f}.tool-chip.unavailable{opacity:.42;text-decoration:line-through}.primary-controls{display:flex;gap:8px;margin-top:auto;padding-top:3px}.primary-button{display:flex;align-items:center;justify-content:center;gap:25px;background:var(--teal);color:#fff;border:1px solid var(--teal-dark);padding:12px 18px;border-radius:12px;box-shadow:0 3px 0 #0b5c51;font-size:13px;font-weight:750;min-height:44px;transition:background .15s,transform .15s}.primary-button:hover:not(:disabled){background:var(--teal-dark);transform:translateY(-1px)}.primary-button:active{transform:translateY(1px);box-shadow:0 1px 0 #0b5c51}.primary-controls .primary-button{flex:1}.primary-button>span:last-child{font-size:10px}.play-button{border:1px solid #d5e1ce;background:#eff4e9;color:#5e846e;border-radius:11px;width:45px;font-size:27px;line-height:1}.secondary-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.secondary-controls a{font-size:11px;text-decoration:none}.secondary-controls button{font-size:11px}.truth-note{color:#8a9481;font-size:9.5px;line-height:1.5;text-align:center;margin-top:14px}.decision-result{padding:11px 12px;border-radius:11px;background:#edf5e8;border:1px solid #d4e5cd;margin-bottom:12px;font-size:11px;line-height:1.55}.decision-result strong{font-size:12px;display:block;margin-bottom:3px;color:#367a5c}.decision-result.degraded{background:#fff3dc;border-color:#e8d3a6}.decision-result.degraded strong{color:#966a2b}.decision-result .result-note{color:#75816c;font-size:10px;margin-top:5px}.error-message{color:#a04d3c;border:1px solid #e6bdac;background:#fff0e7;border-radius:10px;padding:11px;font-size:12px;line-height:1.5;margin-bottom:10px}
.team-section{padding-top:29px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:13px}.section-heading h2{font-size:19px;letter-spacing:-.5px;font-weight:800}.section-heading p{font-size:11px;color:var(--muted);line-height:1.65}.team-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}.team-card{display:flex;align-items:center;flex-direction:column;padding:9px 10px 13px;text-align:center;background:#edf2e6;border:1px solid #dce6d5;border-radius:17px;position:relative;transition:background .2s,transform .2s;min-width:0}.team-card:hover{transform:translateY(-3px);background:#e4eedc}.team-card[data-active=true]{background:#e3f0e6;border-color:#6caa8f;box-shadow:inset 0 0 0 1px #6caa8f}.team-card[data-active=true]:before{content:'';width:7px;height:7px;background:var(--teal);border-radius:50%;position:absolute;top:11px;right:12px}.team-card strong{font-size:13px;font-weight:850;margin-top:0}.team-card .role-name{font-size:10px;color:#678066;font-weight:650;margin-top:2px}.team-card small{font-size:9.5px;line-height:1.45;color:#87917d;margin-top:6px;max-width:135px}.team-card .portrait{width:80px;margin-top:-4px;margin-bottom:2px}.team-card.active-working .portrait{animation:working-bob 1s ease-in-out infinite}.team-card[data-role=bea]{background:#f6f0df}.team-card[data-role=bea]:hover{background:#efe7ce}.team-card[data-role=mira]{background:#eeeaf3}.team-card[data-role=mira]:hover{background:#e7e1ef}.team-card[data-role=luna]{background:#f4ebe1}.team-card[data-role=luna]:hover{background:#eee0d3}.team-card[data-role=nimbus]{background:#e8f0f3}.team-card[data-role=nimbus]:hover{background:#dcebf1}
.inspect-section{margin-top:31px;border-top:1px solid var(--line);padding-top:24px}.inspect-section .section-heading{align-items:center}.inspect-section .section-heading p{margin-top:5px}.pattern-badge{padding:6px 11px;border:1px solid #d5dfcb;border-radius:20px;font-size:11px;color:#688264;font-weight:650;white-space:nowrap}.decision-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.flow-step{background:#fffef8;border:1px solid #dce5d8;border-radius:14px;padding:16px;display:flex;gap:12px;align-items:flex-start}.flow-step .portrait{width:48px}.flow-label{font-size:10px;color:#8a9582;margin-bottom:4px}.flow-step strong{font-size:13px;line-height:1.5}.flow-step p{font-size:11px;line-height:1.6;color:#778575;margin-top:5px}.flow-step.degraded{background:#fff4de}.empty-note{font-size:12px;color:#8b9682;padding:14px 0;line-height:1.6;grid-column:1/-1}.technical-details{margin-top:17px;border-bottom:1px solid var(--line);padding-bottom:16px}.technical-details summary{font-size:12px;font-weight:700;color:#64816e;cursor:pointer}.technical-details[open]>summary{margin-bottom:15px}.trace-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.trace-columns h3{font-size:12px;margin-bottom:12px}.prob-row{display:grid;grid-template-columns:125px 1fr 44px;gap:10px;font-size:11px;align-items:center;margin:10px 0}.prob-track{height:8px;background:#e0e9d8;border-radius:10px;overflow:hidden}.prob-track>i{height:100%;background:#81b39a;display:block;border-radius:10px}.prob-number{text-align:right;font-variant-numeric:tabular-nums}.confidence-note{font-size:10px;color:#87927f;line-height:1.5;margin-top:11px}.evidence-item{font-size:11px;line-height:1.6;padding:5px 0;color:#6f7f6b}pre{font-size:10px;line-height:1.5;overflow:auto;max-height:260px;background:#eaf0e3;padding:14px;border-radius:10px;color:#57745e;white-space:pre-wrap;overflow-wrap:anywhere}.history-section{margin-top:20px}.history-section h3{font-size:13px}.history-section ol{list-style:none;padding:0;margin:7px 0 0}.history-section li[data-decision]{display:grid;grid-template-columns:70px 1fr auto;gap:12px;padding:11px 0;border-bottom:1px solid #e2e9dc;font-size:11px;line-height:1.6;color:#7c8b76}.history-section li strong{font-size:12px;color:#526f56}.history-section li span:last-child{font-size:10px;color:#91a087}.history-section li .history-tick{color:#6d8e75}footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#98a38e;padding:28px 0;margin-top:16px}
dialog{border:1px solid #d4dfca;border-radius:24px;background:var(--paper);color:var(--ink);padding:34px;width:min(580px,calc(100% - 32px));max-height:90vh;overflow:auto;box-shadow:0 20px 90px #243d3630}dialog::backdrop{background:#243d3666;backdrop-filter:blur(3px)}.close-button{position:absolute;right:17px;top:13px;background:#ecf1e6;width:29px;height:29px;border-radius:50%;font-size:23px;color:#75866d;line-height:1}.dialog-kicker{font-size:12px;color:var(--teal);font-weight:700;margin-bottom:9px}dialog h2{font-size:29px;letter-spacing:-1px;margin-bottom:12px}dialog>p{font-size:13px;line-height:1.8;color:#76856f}.guide-steps{padding-left:19px;margin:20px 0}.guide-steps li{padding-left:6px;margin-bottom:14px;font-size:13px}.guide-steps strong{display:block;margin-bottom:3px}.guide-steps span{font-size:12px;color:#798572;line-height:1.7}.guide-note{background:#f3eedc;padding:14px;border-radius:13px;font-size:11px;line-height:1.8;color:#8a7957;margin-bottom:20px}.guide-note strong{color:#6e6849}.character-detail{display:flex;gap:19px;align-items:center;margin:10px 0 14px}.character-detail .portrait{width:135px}.character-detail h2{margin:0 0 4px}.character-detail p{font-size:13px;color:var(--teal);font-weight:700}.character-description{font-size:14px;color:#75836c;line-height:1.85}.character-live-note{margin-top:20px;background:#eaf2e4;padding:15px;border-radius:13px;font-size:12px;line-height:1.7;color:#5d7a61}.character-live-note strong{display:block;color:#486d52;margin-bottom:4px}#token-form{display:grid;gap:12px;margin-top:20px}#token-form label{font-size:12px}#token-form input{padding:11px;border:1px solid #cedac4;border-radius:10px;background:#fff}#token-form button{margin-top:5px}.busy .primary-button{background:#65988b;box-shadow:none}.busy .primary-button>span:last-child{animation:working-bob .9s ease-in-out infinite}
@keyframes working-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(min-width:1550px){main,.site-header{max-width:1500px}.game-layout{grid-template-columns:minmax(0,1fr) 380px}.village-stage{min-height:450px}}
@media(max-width:1080px){main{padding:0 26px}.site-header{padding:20px 26px}.site-header nav{gap:17px}.game-layout{grid-template-columns:minmax(0,1fr) 325px;gap:14px}.village-heading{padding:15px 17px}.village-heading h2{font-size:17px}.village-stage{min-height:350px}.map-caption{gap:7px;font-size:9px}.map-caption>span:last-child{margin-left:0}.story-panel{padding:17px}.team-card small{font-size:9px}.scene-button{padding:13px}.scene-button[aria-pressed=true]{padding:12px}.scene-button small{font-size:10px}.scene-illustration{width:37px;height:37px}.intro h1{font-size:33px}.mode-controls{min-width:215px}.team-rail{gap:8px}.team-card{padding-left:5px;padding-right:5px}.team-card .portrait{width:66px}.team-card .role-name{font-size:9px}.flow-step{padding:12px;gap:8px}.flow-step .portrait{width:38px}}
@media(max-width:800px){.site-header{padding:16px 20px}.brand{font-size:20px}.brand-mark{width:32px;height:35px}.site-header nav{gap:16px}.host-chip{display:none}.repo-link{font-size:12px}.site-header .text-button{font-size:12px}main{padding:0 20px}.intro{align-items:flex-start;flex-direction:column;gap:17px;padding:22px 0 20px}.intro h1{font-size:36px}.intro-description{font-size:13px;margin-top:8px}.intro-note{font-size:11px}.mode-controls{grid-template-columns:auto 1fr;align-items:center;width:100%;gap:7px 12px}.mode-controls select{padding:9px 12px;font-size:12px}.mode-controls>span{grid-column:2}.game-layout{grid-template-columns:minmax(0,1fr) 300px}.village-stage{min-height:340px}.village-svg{width:125%;max-width:none;flex-shrink:0;transform:translateX(-10%)}.village-heading h2{font-size:15px}.map-caption{font-size:9px}.scene-picker{gap:8px}.scene-button{gap:8px;align-items:flex-start;flex-direction:column;padding:12px}.scene-button[aria-pressed=true]{padding:11px}.scene-button strong{font-size:12px}.scene-button small{font-size:9.5px;line-height:1.5}.scene-illustration{width:34px;height:32px;border-radius:9px}.scene-illustration svg{width:23px}.team-rail{grid-template-columns:repeat(3,1fr);gap:9px}.team-card{display:grid;grid-template-columns:62px 1fr;text-align:left;align-content:center;padding:9px}.team-card .portrait{width:62px;grid-row:1/4;margin:0}.team-card strong{font-size:12px;align-self:end}.team-card .role-name{font-size:9px}.team-card small{font-size:9px;margin-top:4px}.team-card[data-active=true]:before{top:8px;right:8px;width:5px;height:5px}.section-heading p{font-size:10px}.decision-flow{grid-template-columns:1fr;gap:8px}.flow-step{padding:13px}.flow-step .portrait{width:41px}.flow-step p{margin-top:3px}.trace-columns{grid-template-columns:1fr}.section-heading h2{font-size:18px}footer{flex-direction:column;gap:7px;font-size:9px}}
@media(max-width:650px){.site-header{padding:14px 16px}.site-header nav{gap:14px}.repo-link{font-size:11px}.brand{font-size:18px;gap:6px}.brand-mark{width:30px;height:32px}.site-header .text-button{font-size:11px}main{padding:0 16px}.intro h1{font-size:31px;letter-spacing:-1.3px}.intro-description{font-size:12px}.mobile-break{display:block}.scene-picker{gap:7px;margin-bottom:14px}.scene-button{padding:11px 9px;min-height:140px;border-radius:13px}.scene-button[aria-pressed=true]{padding:10px 8px}.scene-button strong{font-size:12px}.scene-button small{font-size:9px;line-height:1.55;padding-right:0}.game-layout{grid-template-columns:1fr;gap:15px}.village-stage{min-height:0;aspect-ratio:900/520}.village-svg{width:100%;transform:none}.village-heading{padding:13px 17px 10px}.village-heading h2{font-size:17px}.day-badge{font-size:10px}.map-caption{padding:10px 13px;gap:7px 12px}.map-caption>span:last-child{width:100%}.story-panel{padding:19px}.speaker-heading p{font-size:16px}.speaker-heading>div>span{font-size:11px}blockquote{font-size:13px;padding:12px 14px}.story-topline{margin-bottom:10px}.tools{gap:7px}.tool-chip{font-size:11px;padding:8px}.primary-button{font-size:14px;min-height:46px}.truth-note{font-size:10px;margin-top:12px}.team-section{padding-top:26px}.team-rail{grid-template-columns:repeat(2,1fr);gap:9px}.team-card{padding:10px 7px;grid-template-columns:58px 1fr;min-height:105px}.team-card .portrait{width:58px}.team-card strong{font-size:13px}.team-card .role-name{font-size:9px}.team-card small{font-size:9px}.team-section>.section-heading{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:12px}.inspect-section{margin-top:25px;padding-top:20px}.inspect-section>.section-heading{align-items:flex-start}.pattern-badge{font-size:9px;padding:5px 8px}.inspect-section .section-heading p{font-size:10px;line-height:1.7}.history-section li[data-decision]{grid-template-columns:48px 1fr;gap:9px}.history-section li span:last-child{grid-column:2}.prob-row{grid-template-columns:119px 1fr 40px}.character-detail .portrait{width:100px}dialog{padding:27px 22px}dialog h2{font-size:25px}.character-description{font-size:13px}.character-detail{gap:10px}.character-detail p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
