:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#443a36;background:#e6dbc7;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}:focus-visible{outline:3px solid #a7543d;outline-offset:3px}.shell{width:min(1100px,calc(100% - 32px));margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:2px solid #b7a78f}.brand{display:flex;align-items:center;gap:10px}.brand img{width:36px;height:36px}.brand strong{font-size:20px;letter-spacing:.06em}.language-picker{display:flex;align-items:center;gap:8px;font-size:12px}.language-picker select{padding:8px;background:#fff8e9;border:2px solid #a8957e;color:#443a36;border-radius:5px}main{padding:28px 0}.primary,.secondary,.small-button{min-height:44px;padding:10px 15px;font-weight:750;border:2px solid #a58269;border-radius:6px;color:#503e35;background:#f6e6cc}.primary{background:#e5a95d;border-color:#886345;box-shadow:3px 3px #b49b7c}.primary:hover{background:#f2bd77}.secondary:hover,.small-button:hover{background:#ffe9c1}.intro-panel{max-width:760px;margin:20px auto;background:#fff4df;border:2px solid #8d7158;box-shadow:7px 7px #baa991;padding:32px}.intro-panel h1{font-size:clamp(25px,4vw,40px)}.intro-panel h2{margin-top:28px;font-size:20px}.intro-panel p{line-height:1.8}.intro-panel button{margin-top:16px}.editor-panel{display:grid;grid-template-columns:1fr 1fr;border:2px solid #745a4a;box-shadow:7px 7px #b6a58d;background:#f7eddb}.editor-copy{position:relative;min-height:360px;padding:35px;background:linear-gradient(180deg,#f7e4c12b,#f5ddae15),url(/art/custom/character-courtyard.png) center bottom / cover no-repeat}.editor-copy h1{color:#000;text-shadow:none;font-size:32px}.editor-stage{position:absolute;inset:auto 0 24px;height:180px;display:grid;place-items:end center}.editor-stage canvas{width:160px;height:180px;image-rendering:pixelated;filter:drop-shadow(5px 7px 0 #604b4d)}.editor-copy .fineprint{color:#fff4dc;text-shadow:1px 1px 2px #5d5149}.hero-form{padding:32px;display:flex;flex-direction:column;gap:20px}.player-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.player-choice{min-width:0;min-height:130px;padding:6px 2px;border:2px solid #ae9475;border-radius:4px;background:#fff6e6;color:#4d3a2d;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:3px}.player-choice img{height:100px;max-width:100%;object-fit:contain;image-rendering:pixelated}.player-choice span{font-size:10px;font-weight:700;white-space:nowrap}.player-choice[aria-pressed=true]{border-color:#7b4b26;background:#f5d9a3;box-shadow:0 0 0 2px #e0a55a}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.field{display:flex;flex-direction:column;gap:8px;margin:16px 0}.field>span{font-size:12px;font-weight:700;color:#765445}.field input,.answer-form>input{width:100%;min-height:44px;padding:11px;background:#fff9ec;border:2px solid #b69c80;color:#493c35;border-radius:5px}.fineprint{font-size:12px;color:#6e6157;line-height:1.6}.form-error{color:#9e4f43;font-size:13px;min-height:16px}.opt-in{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;margin:16px 0;cursor:pointer}.opt-in input{flex:none;width:20px;height:20px;accent-color:#b36a4d}.publication{border-top:1px solid #d5c5ac;margin-top:16px;padding-top:4px}body.playing{overflow:hidden}body.playing .shell{width:100%;max-width:none;height:100dvh}body.playing main{padding:0}body.playing #play{position:fixed;inset:0}#game-root{position:fixed;inset:0;width:100%;height:100%;touch-action:none;background:#a9bd86}#game-root canvas{display:block!important;image-rendering:auto;touch-action:none}body.playing .topbar{position:fixed;z-index:10;left:12px;top:12px;width:auto;padding:6px 9px;gap:14px;background:#f8ecd8ed;border:2px solid #715c4a;border-radius:8px;box-shadow:3px 3px #463c3299}body.playing .brand strong{font-size:14px}body.playing .brand img{width:30px;height:30px}body.playing .language-picker span{display:none}body.playing .language-picker select{padding:5px}.game-actions{position:fixed;right:12px;top:12px;z-index:10;display:flex;gap:7px}.game-actions button{background:#f8ecd8ed;box-shadow:3px 3px #463c3299;font-size:13px}.overlay{position:fixed;z-index:20;inset:0;background:#2b2726b8;display:flex;align-items:center;justify-content:center;padding:18px}.dialog{width:min(100%,650px);max-height:92dvh;overflow:auto;background:#fff4df;color:#40352e;border:3px solid #8d7158;border-radius:8px;box-shadow:8px 8px #4d4038;padding:18px 25px 28px}.dialog-head{display:flex;justify-content:flex-end;min-height:36px}.close-button{background:none;color:#57473e;border:0;font-size:30px;min-width:44px;min-height:44px;line-height:1}.dialog h2{font-size:24px;line-height:1.25;margin:8px 0 18px;color:#5b443b}.dialog h3{font-size:16px;margin-top:25px;color:#79523f}.dialog p{line-height:1.65}.dialog-content{overflow-wrap:anywhere}.dialog-story{font-size:14px;color:#51463f}.npc-card{display:flex;gap:17px;align-items:center;background:#f5e6d0;border:2px solid #c4a687;padding:12px;margin:14px 0}.npc-portrait{width:80px;height:80px;aspect-ratio:1;object-fit:contain;flex:none;image-rendering:pixelated;border:3px solid #d4aa73;box-shadow:3px 3px #96765a;background:#d7bfa1}.dialog h2.npc-name{margin-bottom:4px}.dialog h3.npc-district{font-size:14px;line-height:1.4;font-weight:500;color:#79523f;margin:0 0 18px}.npc-card p{margin:6px 0 0}.question{font-size:17px;font-weight:700;line-height:1.5;border-top:1px solid #d1b895;padding-top:18px}.question-hint{color:#a05b43;font-size:12px;font-weight:700}.answer-form{display:flex;flex-direction:column;gap:10px}.answer-option{display:flex;align-items:center;gap:12px;padding:13px;background:#fffaf0;color:#493c34;border:2px solid #cbb598;border-radius:5px;cursor:pointer;font-size:14px;line-height:1.5}.answer-option:hover,.answer-option:has(input:checked){border-color:#a95f45;background:#fbe7c9}.answer-option input{accent-color:#b36a4d;min-width:18px;min-height:18px}.verdict{padding:16px 20px;border-left:4px solid #6c9d79;background:#eef1df;margin:20px 0}.verdict.retry{background:#fae8d7;border-left-color:#be7659}.verdict strong{color:#684a36}.verdict p{font-size:14px}.trust-row{display:flex;align-items:center;gap:10px;font-size:12px}.trust-ring{--trust:0%;width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;color:#b64d5d;font-size:30px;background:radial-gradient(closest-side,#fff3dd 73%,transparent 75%),conic-gradient(#c5646a var(--trust),#c3b7a7 0)}.resident-progress{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:12px 0;border-bottom:1px solid #ddceb9}.resident-progress>strong{font-size:14px;grid-column:1}.resident-progress .trust-row{grid-column:1}.resident-progress>.small-button{grid-column:2;grid-row:1/3}.ranking-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #ddceb9;font-size:14px}.ranking-row strong{white-space:pre-wrap;overflow-wrap:anywhere}.ranking-row.my-rank{color:#a35842}.keywords{display:flex;flex-wrap:wrap;list-style:none;padding:0;gap:8px}.keywords li{padding:6px 9px;background:#f1dfbf;border:1px solid #bca17e;border-radius:5px;font-size:13px}.source-links{padding-left:20px}.source-links li{margin:8px 0;overflow-wrap:anywhere}.source-links a{color:#86513e}.toast{position:fixed;z-index:30;left:50%;bottom:20px;transform:translate(-50%);max-width:min(90vw,520px);padding:13px 18px;background:#fff5df;color:#514137;border:2px solid #ab7455;box-shadow:4px 4px #866a55;text-align:center;font-size:13px;line-height:1.5}@media(max-width:750px){.editor-panel{grid-template-columns:1fr}.editor-copy{padding:22px;min-height:280px}.editor-copy h1{font-size:25px}.editor-stage{height:150px}.editor-stage canvas{width:96px;height:108px}.hero-form{padding:22px}.intro-panel{padding:24px;margin:0}.intro-panel p{font-size:14px}body.playing .brand strong{display:none}body.playing .topbar{left:8px;top:8px;padding:4px;gap:3px}.game-actions{right:8px;top:8px;gap:4px}.game-actions button{padding:8px;font-size:11px}.dialog{padding:12px 16px 22px}.dialog h2{font-size:21px}.npc-portrait{width:60px;height:60px}.npc-card{gap:10px;padding:9px}.npc-card .dialog-story{font-size:12px}.trust-row{font-size:11px}.language-picker>span{display:none}}@media(max-width:360px){body.playing .game-actions{top:68px}.game-actions button{padding:7px 5px;font-size:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}button.brand{border:0;background:transparent;color:inherit;padding:0;min-height:44px;min-width:44px;justify-content:center;text-align:left}.about-version{font-weight:700;overflow-wrap:anywhere}.release-entry{border-top:1px solid #d5c5ac;margin-top:20px;padding-top:4px}.release-entry h3{margin:16px 0 6px}.release-entry time{font-size:12px;color:#6e6157}.release-entry ul{padding-left:22px;margin:12px 0 20px}.release-entry li{line-height:1.65;margin:8px 0}.editor-publication{padding-top:20px;border-top:2px solid #c4a687;min-width:0}.editor-publication h2{font-size:20px;margin:0 0 16px}.hero-form>.form-error:empty{display:none}.dialog-actions,.finale-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}@media(max-width:600px){.finale-actions{flex-direction:column;align-items:stretch}}.npc-label-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;contain:layout style paint}.npc-map-label{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;transform:translate(-50%,-100%);margin:0;padding:2px;border:0;background:transparent;color:#302a25;pointer-events:auto;cursor:pointer;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;font-weight:650;line-height:1.25;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;image-rendering:auto;white-space:nowrap}.npc-map-heart{--trust:0%;display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;font-family:system-ui,sans-serif;font-size:30px;line-height:1;color:#a93d53;background:radial-gradient(closest-side,#fff9ec 74%,transparent 77%),conic-gradient(#b84861 var(--trust),#b5a48a 0);box-shadow:0 1px 3px #302a2540}.npc-map-name{padding:3px 9px;background:#fff9ec;border:1px solid #9e896d;border-radius:5px;box-shadow:0 1px 3px #302a2530}.npc-map-label:focus-visible .npc-map-name{background:#fff0b9;border-color:#9c653b}.npc-map-label:focus-visible{outline:2px solid #a7543d;outline-offset:2px;border-radius:6px}.building-map-label{position:absolute;transform:translate(-50%,-100%);padding:6px 13px;background:#fff7e5;border:2px solid #8d7151;border-radius:7px;box-shadow:0 3px #6f513987;color:#392e24;white-space:nowrap;font-size:16px;font-weight:750;line-height:1.3;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;pointer-events:none}.npc-map-label{z-index:2}.world-signpost-layer{position:absolute;inset:0;z-index:0;pointer-events:none;image-rendering:pixelated;-webkit-mask-image:linear-gradient(#000,#000),var(--player-cutout,linear-gradient(transparent,transparent));mask-image:linear-gradient(#000,#000),var(--player-cutout,linear-gradient(transparent,transparent));-webkit-mask-size:100% 100%,var(--player-width,0px) var(--player-height,0px);mask-size:100% 100%,var(--player-width,0px) var(--player-height,0px);-webkit-mask-position:0 0,var(--player-x,0px) var(--player-y,0px);mask-position:0 0,var(--player-x,0px) var(--player-y,0px);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:xor;mask-composite:exclude}.world-signpost{position:absolute;transform:translate(-50%,-100%);padding:0 12px 25px;pointer-events:none;isolation:isolate;image-rendering:auto;-webkit-user-select:none;user-select:none;cursor:default}.world-signpost *{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none}.signpost-pole{position:absolute;z-index:-1;left:calc(50% - 5px);bottom:0;width:10px;height:calc(100% - 7px);background:linear-gradient(90deg,#6e4a2c 0 20%,#b48a54 20% 70%,#876039 70%);border:1px solid #604426;border-radius:2px}.signpost-boards{display:flex;flex-direction:column;align-items:center;gap:4px}.signpost-board{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:155px;min-height:32px;max-width:225px;padding:5px 15px;background:linear-gradient(#f4dfb3,#e3c38b);border:0;color:#3c2c1f;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;font-weight:650;line-height:1.3;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;white-space:nowrap;pointer-events:none;cursor:default;box-shadow:inset 0 2px #fff1cd,inset 0 -2px #96683a;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)}.signpost-board[data-direction=left]{clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%)}.signpost-arrow{display:block;width:24px;height:24px;flex:none;object-fit:contain;image-rendering:auto}.signpost-board[data-direction=up],.signpost-board[data-direction=down]{clip-path:none;border-radius:3px}.scenery-illustration{display:block;width:100%;height:auto;border:3px solid #8d7158;border-radius:6px;margin:16px 0 22px;background:#252d3c;image-rendering:pixelated}.train-runner{display:block;width:100%;height:auto;border:3px solid #8d7158;border-radius:6px;touch-action:manipulation;cursor:pointer;image-rendering:pixelated}.train-runner:focus-visible{outline:3px solid #c19322;outline-offset:3px}.runner-score{font-size:20px;font-weight:750;font-variant-numeric:tabular-nums;margin:12px 0 8px}.runner-caption{font-style:italic;margin:10px 0 22px}.scenery-map-label{font-size:15px}
