.kcf-city{--ink:#183e39;--muted:#657771;--paper:#f6f4ec;--line:#dcded2;--green:#1a6959;--yellow:#ecd487;font:15px/1.6 system-ui,-apple-system,"Noto Sans JP",sans-serif;color:var(--ink);background:var(--paper);border-radius:20px;overflow:hidden;max-width:1600px;margin:auto;isolation:isolate;box-shadow:0 15px 60px #14352b20}.kcf-city *{box-sizing:border-box}.kcf-city button,.kcf-city input{font:inherit}.kcf-city button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px;min-height:44px;cursor:pointer;box-shadow:none;padding:9px 14px;line-height:1.4;letter-spacing:0}.kcf-city button:hover{background:#e9eadf}.kcf-city button:focus-visible,.kc-scene:focus-visible{outline:3px solid #cd9740;outline-offset:-3px}.kcf-city button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.kcf-city [hidden]{display:none!important}.kc-header{display:flex;align-items:center;justify-content:space-between;padding:18px 26px;border-bottom:1px solid var(--line);gap:12px}.kc-kicker{font-size:10px;letter-spacing:2px;font-weight:750}.kc-header h2{font-size:23px;margin:1px 0;font-weight:800;line-height:1.5}.kc-header h2 small{font-size:12px;font-weight:500;margin-left:12px}.kc-close{font-size:12px!important;flex-shrink:0}.kc-workspace{display:grid;grid-template-columns:250px 1fr}.kc-sidebar{padding:25px 22px;border-right:1px solid var(--line)}.kc-tag{font-size:10px;background:#e5e9da;padding:5px 9px;border-radius:20px}.kc-sidebar h3{font-size:25px;line-height:1.7;letter-spacing:1px;margin:17px 0 9px}.kc-sidebar p{font-size:12px;color:var(--muted);margin:0}.kc-location{border-block:1px solid var(--line);padding:18px 0;margin:23px 0;display:flex;flex-direction:column;gap:4px}.kc-location>span,.kc-section-label{font-size:10px;color:var(--muted);letter-spacing:1px}.kc-location strong{font-size:19px}.kc-location small{font-size:11px}.kc-spots button{width:100%;display:grid;grid-template-columns:23px 1fr;text-align:left;margin:9px 0;font-size:11px;background:transparent}.kc-spots b{font-size:13px}.kc-spots button span{grid-column:2;font-size:10px;color:var(--muted)}.kc-fact{margin-top:22px;background:#eceee2;padding:12px;border-radius:12px}.kc-fact b{font-size:11px}.kc-fact p{font-size:11px;margin-top:4px}.kc-textbutton{padding:10px 0!important;border:0!important;background:none!important;font-size:10px!important;text-decoration:underline}.kc-stage{position:relative;min-height:680px;height:min(78vh,850px);overflow:hidden;background:#b6d8d2}.kc-scene{position:absolute;inset:0;touch-action:none;outline:0}.kc-scene canvas{display:block;width:100%;height:100%}.kc-topbar{position:absolute;top:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.kc-tabs{display:flex;gap:3px;padding:4px;background:#f6f4ecef;border-radius:12px;pointer-events:auto;box-shadow:0 2px 12px #17392c15}.kc-tabs button{border:0;font-size:12px;min-height:38px;padding:7px 16px}.kc-viewlabel{font-size:11px;letter-spacing:3px;background:#f6f4ecdd;border-radius:30px;padding:6px 12px}.kc-righttools{position:absolute;right:16px;top:85px;display:flex;flex-direction:column;gap:6px}.kc-righttools button{width:43px;padding:0;font-size:20px;background:#f6f4eced}.kc-righttools button:nth-child(3){font-size:13px}.kc-mapwrap{position:absolute;bottom:142px;right:16px;width:150px;background:#f6f4eced;border:5px solid #f6f4ec;border-radius:12px;box-shadow:0 3px 20px #17392c20;overflow:hidden;pointer-events:none}.kc-minimap{width:100%;display:block;aspect-ratio:4/3}.kc-mapwrap>span{font-size:9px;display:flex;justify-content:space-between;padding:3px 5px}.kc-bottom{position:absolute;bottom:34px;left:18px;right:18px}.kc-hint{font-size:11px;color:var(--ink);background:#f6f4eceb;padding:7px 13px;border-radius:8px 8px 0 0;width:fit-content}.kc-toolbar{display:flex;gap:5px;background:#f6f4ecf5;border:1px solid #ffffff70;padding:8px;border-radius:0 12px 12px 12px;box-shadow:0 8px 30px #17392c18}.kc-toolbar button{font-size:12px;flex:1;padding:8px 9px;white-space:nowrap}.kc-toolbar .kc-primary{background:var(--green);color:white;border-color:var(--green);flex:1.7}.kc-primary span{margin-left:10px}.kc-credit{position:absolute;bottom:0;left:0;right:0;background:#f6f4ece8;padding:6px 12px;font-size:9px;text-align:right;line-height:1.2}.kc-credit a{color:var(--ink);text-decoration:underline}.kc-notice{position:absolute;left:50%;top:84px;transform:translateX(-50%);max-width:75%;background:#173e38ed;color:white;padding:10px 18px;border-radius:12px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}.kc-notice.visible{opacity:1}.kc-loading{position:absolute;inset:0;background:var(--paper);z-index:8;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center}.kc-loading p{font-size:12px;color:var(--muted)}.kc-spinner{width:36px;height:36px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:kc-spin 1s linear infinite;margin-bottom:20px}@keyframes kc-spin{to{transform:rotate(360deg)}}.kc-regionlabels{position:absolute;inset:0;pointer-events:none}.kc-regionlabels span{position:absolute;transform:translate(-50%,-50%);padding:5px 12px;border-radius:20px;background:#f6f4eced;color:#25493e;font-size:12px;font-weight:bold;white-space:nowrap;box-shadow:0 2px 8px #203e2420}.kc-regionlabels .active{background:var(--green);color:white}.kc-walkhud{position:absolute;inset:0;pointer-events:none}.kc-walkhud>button{position:absolute;left:18px;top:86px;pointer-events:auto;font-size:11px;background:#f6f4ecdf}.kc-joystick{position:absolute;bottom:163px;left:25px;width:112px;height:112px;border-radius:50%;border:2px solid #ffffffc0;background:#f6f4ec55;pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:center}.kc-joystick span{width:45px;height:45px;border-radius:50%;background:#f6f4ecd9;box-shadow:0 2px 8px #0002}.kc-joystick i{position:absolute;bottom:8px;font-size:10px;font-style:normal}.kc-lookhint{position:absolute;bottom:155px;left:160px;font-size:10px;background:#f6f4ecd0;padding:5px 8px;border-radius:8px}.kc-mobileplaces{display:none}.kc-dialogback{position:fixed;inset:0;background:#102c29aa;z-index:999999;display:flex;justify-content:center;align-items:center;padding:18px}.kc-dialog{position:relative;background:var(--paper);border-radius:20px;width:560px;max-width:100%;max-height:85dvh;overflow:auto;padding:30px}.kc-dialog h3{margin:0 35px 20px 0;font-size:21px}.kc-dialog p,.kc-dialog li{font-size:13px}.kc-dialog a{color:var(--green)}.kc-dialogclose{position:absolute;right:12px;top:12px;font-size:25px!important;border:0!important}.kc-dialog input{display:block;width:100%;background:white;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px;margin:8px 0 15px}.kc-dialog .kc-savebutton{background:var(--green);color:white}.kc-bookmark{display:flex;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.kc-bookmark .kc-bookmark-load{flex:1;text-align:left}.kc-bookmark small{display:block;color:var(--muted);font-size:10px}.kc-dialogbody ul{padding-left:18px}.kcf-city:fullscreen{width:100%;height:100%;max-width:none;border-radius:0}.kcf-city:fullscreen .kc-stage{height:calc(100dvh - 90px)}
@media(max-width:900px){.kc-workspace{grid-template-columns:200px 1fr}.kc-sidebar{padding:20px 15px}.kc-sidebar h3{font-size:22px}.kc-toolbar{flex-wrap:wrap}.kc-toolbar button{flex:auto}.kc-stage{min-height:650px}.kc-mapwrap{bottom:190px}.kc-walkhud .kc-joystick{bottom:210px}.kc-lookhint{bottom:200px}}
@media(max-width:650px){.kcf-city{border-radius:12px;font-size:14px}.kc-header{padding:12px 13px;align-items:center}.kc-kicker{font-size:8px;letter-spacing:1px}.kc-header h2{font-size:19px}.kc-header h2 small{display:block;font-size:10px;margin:0}.kc-close{font-size:10px!important;padding:7px 9px!important}.kc-workspace{display:block}.kc-sidebar{display:none}.kc-stage{height:calc(100svh - 155px);min-height:520px;max-height:820px}.kc-topbar{top:12px;left:12px;right:12px}.kc-tabs button{padding:7px 12px}.kc-viewlabel{font-size:8px;letter-spacing:1px;padding:5px 8px}.kc-righttools{right:12px;top:75px;gap:5px}.kc-righttools button{width:38px;min-height:40px}.kc-bottom{left:10px;right:10px;bottom:35px}.kc-hint{font-size:9px;padding:6px 8px;width:100%;border-radius:8px 8px 0 0}.kc-toolbar{gap:5px;padding:7px;display:grid;grid-template-columns:1.35fr 1fr 1fr;border-radius:0 0 10px 10px}.kc-toolbar button{font-size:10px;min-height:40px;padding:6px 4px;white-space:normal}.kc-toolbar .kc-primary{grid-column:span 2}.kc-toolbar button[data-action=light]{grid-column:3;grid-row:1}.kc-toolbar button[data-action=quality]{grid-column:3}.kc-mapwrap{width:105px;bottom:177px;right:12px;border-width:3px}.kc-mapwrap>span{font-size:8px}.kc-walkhud .kc-joystick{left:18px;bottom:177px;width:100px;height:100px}.kc-lookhint{bottom:159px;left:18px;font-size:9px}.kc-walkhud>button{left:12px;top:72px;font-size:10px;max-width:180px;min-height:38px}.kc-credit{font-size:8px;line-height:1.3;padding:5px 9px;text-align:center}.kc-mobileplaces{display:flex;gap:5px;padding:8px;justify-content:center}.kc-mobileplaces button{flex:1;min-height:42px;font-size:10px;padding:5px 3px}.kc-notice{max-width:85%;width:max-content;top:120px;font-size:11px}.kc-regionlabels span{font-size:10px;padding:4px 8px}.kc-dialog{padding:24px 20px}.kcf-city:fullscreen .kc-stage{height:calc(100dvh - 135px);max-height:none}}
@media(prefers-reduced-motion:reduce){.kc-spinner{animation:none}.kc-notice{transition:none}}

.kc-fullscreen-icon{display:inline-block;width:17px;height:17px;background:linear-gradient(#183e39,#183e39) left top/6px 2px no-repeat,linear-gradient(#183e39,#183e39) left top/2px 6px no-repeat,linear-gradient(#183e39,#183e39) right top/6px 2px no-repeat,linear-gradient(#183e39,#183e39) right top/2px 6px no-repeat,linear-gradient(#183e39,#183e39) left bottom/6px 2px no-repeat,linear-gradient(#183e39,#183e39) left bottom/2px 6px no-repeat,linear-gradient(#183e39,#183e39) right bottom/6px 2px no-repeat,linear-gradient(#183e39,#183e39) right bottom/2px 6px no-repeat}
.kc-economy{border-bottom:1px solid var(--line);background:#edf0e4;padding:10px 24px;display:grid;grid-template-columns:minmax(340px,1fr) auto;gap:6px 20px}.kc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kc-stats>div{display:flex;flex-direction:column}.kc-stats span{font-size:10px;color:var(--muted)}.kc-stats strong{font-size:18px;line-height:1.5;font-variant-numeric:tabular-nums}.kc-econactions{display:flex;gap:5px;align-items:center}.kc-econactions button{font-size:11px;padding:8px 11px;background:#fffdf3}.kc-econactions button:nth-child(2){background:var(--green);color:white}.kcf-city button:disabled{opacity:.45;cursor:not-allowed}.kc-savestatus{grid-column:1/-1;font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;min-height:17px}.kc-savestatus button{min-height:30px;padding:3px 10px;font-size:10px;border-color:#bf904e}.kc-catalog{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.kc-catalog button{text-align:left;padding:12px;display:flex;flex-direction:column;gap:4px}.kc-catalog b{font-size:14px}.kc-catalog span{font-size:11px}.kc-catalog small{font-size:10px;color:var(--muted)}.kc-placement{position:absolute;left:18px;bottom:150px;width:270px;border:1px solid #d5c79b;border-radius:14px;background:#fff9e9f5;padding:14px;box-shadow:0 8px 25px #172d2933;z-index:2}.kc-placement strong{font-size:15px}.kc-placement p{font-size:12px;margin:8px 0}.kc-placement button{font-size:12px;margin:3px 4px 0 0;min-height:40px}.kc-placement .kc-savebutton{background:var(--green);color:white}.kc-planning .kc-mapwrap{opacity:.45}.kc-report{display:grid;grid-template-columns:1fr 1.8fr;gap:8px;font-size:12px;padding:15px;border-radius:12px;background:#e8eddf}.kc-report strong{font-weight:600;text-align:right}.kc-dialog select{font:inherit;padding:9px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:8px;margin-right:8px}.kc-historytable{width:100%;font-size:11px;border-collapse:collapse}.kc-historytable th,.kc-historytable td{padding:7px 3px;border-bottom:1px solid var(--line);text-align:right}.kc-historyback{position:absolute;top:72px;left:18px;background:#f6e1a2!important;font-size:11px!important;z-index:2}.kcf-city:fullscreen .kc-stage{height:calc(100dvh - 190px)}
@media(max-width:1000px){.kc-economy{grid-template-columns:1fr;gap:8px;padding:10px 18px}.kc-econactions button{flex:1}.kc-stats{gap:8px}}
@media(max-width:650px){.kc-economy{padding:8px 10px;gap:7px}.kc-stats strong{font-size:15px}.kc-stats span{font-size:9px}.kc-econactions{gap:4px}.kc-econactions button{font-size:10px;padding:6px 4px;min-height:40px}.kc-savestatus{font-size:9px;line-height:1.4}.kc-stage{height:calc(100svh - 275px);min-height:520px}.kc-placement{left:12px;bottom:175px;width:calc(100% - 138px);padding:11px}.kc-placement strong{font-size:13px}.kc-placement p{font-size:10px}.kc-placement button{font-size:10px;width:100%;margin:4px 0 0}.kc-catalog{gap:6px}.kc-catalog button{padding:10px}.kc-catalog b{font-size:12px}.kc-catalog span{font-size:10px}.kc-historyback{font-size:10px!important;left:12px;max-width:calc(100% - 75px)}.kcf-city:fullscreen .kc-stage{height:calc(100dvh - 260px)}}
.kcf-city .kc-public-list{display:grid;gap:12px}.kcf-city .kc-public-list article{border:1px solid #ccd8cc;border-radius:14px;padding:14px;background:#f4f5ec}.kcf-city .kc-public-list h3{margin:0;overflow-wrap:anywhere}.kcf-city .kc-dialog label{display:block;margin:16px 0;line-height:1.8}.kcf-city .kc-dialog input[type=checkbox]{width:22px;min-height:22px;vertical-align:middle;margin-right:8px}.kcf-city .kc-econactions{flex-wrap:wrap}
@media(max-width:700px){.kcf-city .kc-econactions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.kcf-city .kc-econactions button{min-height:44px;font-size:11px}}
.kcf-city .kc-atlaspin{position:absolute;z-index:4;transform:translate(-50%,-50%);background:#ffd17d;border:2px solid #fff7d7;color:#173c39;min-height:44px;font-weight:700;box-shadow:0 4px 20px #1234}.kcf-city .kc-atlasnote{position:absolute;top:78px;left:18px;z-index:3;display:grid;gap:5px;max-width:250px;padding:12px;border-radius:12px;background:#fffdf0ed;color:#25453f;pointer-events:auto}.kcf-city .kc-atlasnote b{font-size:14px}.kcf-city .kc-atlasnote span,.kcf-city .kc-atlasnote small{font-size:11px}.kcf-city .kc-atlasnote button{font-size:11px;min-height:36px}.kcf-city .kc-atlasnote[hidden],.kcf-city .kc-atlaspin[hidden]{display:none}@media(max-width:700px){.kcf-city .kc-atlasnote{top:69px;left:12px;max-width:210px;padding:9px}.kcf-city .kc-mobileplaces{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.kcf-city .kc-atlasnote b,.kcf-city .kc-atlasnote small{display:none}.kcf-city .kc-atlasnote{max-width:195px}.kcf-city .kc-mobileplaces button{min-height:44px;font-size:11px}}
.kcf-city .kc-tram-follow{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:5;background:#fff2ce;white-space:nowrap;font-size:12px;min-height:44px}.kcf-city .kc-tram-follow[hidden]{display:none}.kcf-city .kc-tram-colors{display:flex;flex-wrap:wrap;gap:8px}.kcf-city .kc-tram-colors button{min-height:44px;min-width:60px}.kcf-city .kc-tram-colors button[aria-pressed=true]{outline:2px solid #22695d}
.kcf-city .kc-tram-ride{position:absolute;z-index:6;top:70px;left:14px;right:74px;padding:9px 12px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#fcf5dced;border:1px solid #d1b982;border-radius:12px}.kcf-city .kc-tram-ride[hidden]{display:none}.kcf-city .kc-tram-ride span{font-weight:700;font-size:12px;margin-right:auto}.kcf-city .kc-tram-ride button{min-height:40px;font-size:11px;padding:7px 10px}@media(max-width:700px){.kcf-city .kc-tram-ride{right:65px;padding:8px}.kcf-city .kc-tram-ride span{width:100%}.kcf-city .kc-tram-ride button{flex:1;min-height:44px;padding:6px}}
.kcf-city .kc-advice{display:grid;gap:10px}.kcf-city .kc-advice article{background:#edf1e5;border-left:4px solid #6e9c83;padding:12px;border-radius:8px}.kcf-city .kc-advice h4{margin:0}.kcf-city .kc-advice p{margin:8px 0}.kcf-city .kc-goal{display:grid;gap:5px;margin:12px 0;padding:10px;border:1px solid #d4ddcb;border-radius:10px}.kcf-city .kc-goal span{font-size:12px}.kcf-city .kc-goal progress{width:100%;accent-color:#257366}.kcf-city .kc-facilityfilters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.kcf-city .kc-facilityfilters select{min-height:44px;max-width:100%;flex:1}.kcf-city .kc-facilitylist{display:grid;gap:8px}.kcf-city .kc-facilitylist button{display:grid;text-align:left;gap:5px;width:100%}.kcf-city .kc-facilitylist span{font-size:11px}.kcf-city .kc-econactions{max-width:100%}
.kcf-city .kc-reportchart{margin:16px 0;padding:12px;background:#f1f4e9;border:1px solid #d2dcca;border-radius:12px}.kcf-city .kc-reportchart figcaption{font-weight:700}.kcf-city .kc-reportchart svg{display:block;width:100%;height:auto}.kcf-city .kc-reportchart small{font-size:12px}.kcf-city .kc-reportnumbers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.kcf-city .kc-reportnumbers div{display:grid;gap:6px;background:#edf2e4;padding:12px;border-radius:10px}.kcf-city .kc-reportnumbers span{font-size:11px}.kcf-city .kc-reportnumbers strong{font-size:17px;overflow-wrap:anywhere}.kcf-city .kc-reporttablewrap{overflow-x:auto}.kcf-city .kc-result{display:grid;gap:10px;padding:22px;background:#e6efdf;border-radius:16px;text-align:center}.kcf-city .kc-result strong{font-size:32px;color:#216758}.kcf-city .kc-dialog summary{cursor:pointer;min-height:44px;line-height:44px}
.kcf-city .kc-tram-speed{min-height:40px;padding:4px 8px;border:1px solid #b7c5b7;border-radius:8px;background:#fffdf2;color:#244e43}.kcf-city .kc-tram-ride label{font-size:11px;display:flex;gap:5px;align-items:center}@media(max-width:700px){.kcf-city .kc-tram-ride span{width:auto;flex:1}.kcf-city .kc-tram-ride label{margin-left:auto}.kcf-city .kc-tram-speed{min-height:44px}.kcf-city .kc-tram-ride button{flex:1 0 27%}}
@media(max-width:700px){.kcf-city .kc-tram-ride{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.kcf-city .kc-tram-ride span{grid-column:1/-1;white-space:normal;width:auto;line-height:1.4}.kcf-city .kc-tram-ride label{grid-column:1/-1;margin:0;justify-content:space-between}.kcf-city .kc-tram-speed{width:65%;max-width:180px}.kcf-city .kc-tram-ride button{width:100%;padding:6px 3px;line-height:1.4}}

.kcf-city .kc-tram-view{min-height:44px;padding:4px 8px;border:1px solid #b7c5b7;border-radius:8px;background:#fffdf2;color:#244e43}.kcf-city .kc-tram-route-status{flex-basis:100%;font-size:12px}.kcf-city .kc-tram-stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.kcf-city .kc-tram-stops>div{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #b7c5b7;border-radius:12px;background:#f6f5e8}.kcf-city .kc-tram-stops small{font-size:12px}.kcf-city .kc-tram-stops button{min-height:44px}@media(max-width:700px){.kcf-city .kc-tram-view{width:65%;max-width:180px}.kcf-city .kc-tram-route-status{grid-column:1/3;line-height:1.4}.kcf-city .kc-tram-stops{grid-template-columns:1fr}.kcf-city .kc-tram-ride{max-height:calc(100% - 120px);overflow:auto}}
.kcf-city .kc-tram-speed,.kcf-city .kc-tram-view{font-family:inherit}

.kcf-city .kc-city-clock{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-top:10px;background:#e4eddf;border:1px solid #c8d7c0;border-radius:12px}.kcf-city .kc-clock-status{flex:1 1 230px;font-size:12px;font-weight:650}.kcf-city .kc-city-clock label{display:flex;align-items:center;gap:6px;font-size:12px}.kcf-city .kc-city-clock select{font:inherit;min-height:44px;border:1px solid #bdcdb5;border-radius:8px;padding:6px;background:#fffdf5;color:#183e39}.kcf-city .kc-city-clock button{font-size:12px;min-height:44px}.kcf-city .kc-clock-debt{display:flex;align-items:center;gap:8px;min-height:48px}.kcf-city .kc-clock-debt input{width:22px;min-height:22px;flex:0 0 22px}@media(max-width:700px){.kcf-city .kc-city-clock{display:grid;grid-template-columns:1fr auto;gap:6px;padding:8px}.kcf-city .kc-clock-status{grid-column:1/-1}.kcf-city .kc-city-clock label{min-width:0}.kcf-city .kc-city-clock select{width:100%;min-width:0}.kcf-city .kc-city-clock button{padding:8px}}
.kcf-city .kc-city-clock label{white-space:nowrap}.kcf-city .kc-dialog .kc-clock-debt{display:flex}.kcf-city .kc-dialog .kc-clock-debt input{margin:0}

/* Keep two small controls available while the scenery is unobstructed. */
.kcf-city .kc-tram-compact{position:absolute;top:12px;left:12px;z-index:7;display:flex;gap:6px}.kcf-city .kc-tram-compact button{min-height:44px;padding:8px 12px;font-size:12px;background:#fffdf2ed;color:#183e39;box-shadow:0 2px 8px #163a2820}.kcf-city.kc-tram-riding .kc-topbar{display:none}.kcf-city.kc-tram-clear .kc-bottom,.kcf-city.kc-tram-clear .kc-mapwrap,.kcf-city.kc-tram-clear .kc-righttools,.kcf-city.kc-tram-clear .kc-notice{display:none!important}

.kcf-city .kc-facility-map{position:absolute;inset:0;pointer-events:none;z-index:5}.kcf-city .kc-facility-map button{pointer-events:auto}.kcf-city .kc-facility-map-summary{position:absolute;left:12px;top:64px;font-size:11px;min-height:44px;padding:7px 10px;background:#f7f4e9ed}.kcf-city .kc-facility-marker{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;height:48px;min-height:48px;padding:3px 6px;border:2px solid #297b63;border-radius:9px;background:#fcfff4f5;color:#173e31;box-shadow:0 2px 5px #203b3430;line-height:1.3}.kcf-city .kc-facility-marker strong{font-size:11px}.kcf-city .kc-facility-marker small{font-size:10px}.kcf-city .kc-facility-marker.is-disconnected{border-color:#b44e35;background:#fff1e5;color:#783520}.kcf-city.kc-tram-clear .kc-facility-map{display:none!important}

.kcf-city .kc-sector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.kcf-city .kc-sector-grid button{min-height:64px;font-size:13px;padding:8px}.kcf-city .kc-sector-grid button:focus-visible{outline:3px solid #cd9740}

.kcf-city .kc-car-cockpit{position:absolute;inset:0;z-index:3;pointer-events:none;border-left:9px solid #263c4255;border-right:9px solid #263c4255}.kcf-city .kc-car-cockpit:after{content:"";position:absolute;left:-9px;right:-9px;bottom:24px;height:46px;background:linear-gradient(#4c6169,#223740);border-radius:50% 50% 0 0/12px 12px 0 0;box-shadow:0 -2px 4px #142b3422}.kcf-city .kc-car-cockpit i{position:absolute;z-index:1;bottom:29px;right:16%;width:56px;height:56px;border:7px solid #192f38;border-radius:50%;box-shadow:inset 0 0 0 1px #6c7a80}.kcf-city .kc-car-cockpit b{position:absolute;bottom:39px;left:28%;width:56px;height:15px;background:#0f272e;border:2px solid #536d72;border-radius:4px;z-index:1}

.kc-tram-plan{display:block;width:100%;max-height:330px;background:#f8f6eb;border-radius:12px}.kc-tram-project{padding:12px;margin:12px 0;border:1px solid #ccd4bd;border-radius:12px}.kc-tram-project h4{margin:0 0 8px}

.kc-transit-controls{display:grid;gap:12px;margin:12px 0}.kcf-city .kc-dialog .kc-transit-controls label{display:flex;margin:0;min-height:44px;align-items:center;justify-content:space-between;gap:12px}.kc-transit-controls select{max-width:65%;min-width:110px}.kcf-city .kc-dialog .kc-transit-toggle input[type=checkbox]{display:inline-block;width:24px;height:24px;min-width:24px;flex:0 0 24px;margin:0;padding:0;accent-color:#26786d}.kcf-city .kc-dialog .kc-transit-controls .kc-transit-toggle{justify-content:flex-start}.kc-transit-preview{padding:12px;border-radius:10px;background:#edf2df;overflow-wrap:anywhere}

.kc-map-edges{position:absolute;inset:0;pointer-events:none;z-index:3}.kcf-city .kc-map-edges button{position:absolute;pointer-events:auto;max-width:145px;font-size:11px;background:#f6f4ecef;box-shadow:0 2px 10px #153c3925}.kc-edge-west{left:5px;top:44%}.kc-edge-east{right:5px;top:44%}.kc-edge-north{left:50%;top:7px;transform:translateX(-50%)}.kc-edge-south{left:50%;bottom:28px;transform:translateX(-50%)}.kc-tram-clear .kc-map-edges{display:none}@media(max-width:650px){.kcf-city .kc-map-edges button{max-width:100px;padding:7px 5px;font-size:10px}}

.kc-park-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.kcf-city .kc-park-grid button{min-height:60px;font-size:12px}.kc-park-art{display:block;max-width:100%;max-height:400px;width:auto;height:auto;margin:10px auto}.kc-dialogbody section a{overflow-wrap:anywhere}@media(max-width:500px){.kc-park-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.kcf-city.kc-tram-clear .kc-economy,.kcf-city.kc-tram-clear .kc-mobileplaces{display:none}.kcf-city.kc-tram-clear .kc-stage{height:calc(100svh - 110px);min-height:420px;max-height:none}

.kcf-city.kc-citywide .kc-bottom,.kcf-city.kc-citywide .kc-mapwrap{display:none!important}
/* Keep the placement preview unobscured on narrow screens. */
.kcf-city.kc-planning .kc-bottom,.kcf-city.kc-planning .kc-mapwrap{display:none!important}
.kcf-city.kc-planning .kc-placement{bottom:12px}
@media(max-width:650px){.kcf-city.kc-planning .kc-placement{left:12px;right:12px;width:auto}.kcf-city.kc-planning .kc-placement button{width:calc(50% - 4px);margin:4px 4px 0 0;min-height:44px;font-size:12px}}

.kcf-city .kc-scenery-toggle{position:absolute;top:70px;left:18px;z-index:3;background:#fffdf2ed;font-size:12px;min-height:44px;padding:8px 12px}
.kcf-city.kc-planning .kc-scenery-toggle{display:none}
.kcf-city.kc-scenery .kc-economy,.kcf-city.kc-scenery .kc-sidebar,.kcf-city.kc-scenery .kc-mobileplaces,.kcf-city.kc-scenery .kc-bottom,.kcf-city.kc-scenery .kc-mapwrap{display:none!important}
.kcf-city.kc-scenery .kc-workspace{display:block}
.kcf-city.kc-scenery .kc-stage{height:calc(100svh - 110px);min-height:480px}
.kcf-city .kc-repeat{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0;min-height:36px;cursor:pointer}
.kcf-city .kc-repeat input{width:20px;height:20px;margin:0;accent-color:#256d60}
.kcf-city .kc-catalog small{font-weight:normal;line-height:1.5;color:#56716a}
@media(max-width:650px){.kcf-city .kc-scenery-toggle{left:12px;top:62px}.kcf-city .kc-catalog strong{font-size:13px}.kcf-city .kc-catalog small{font-size:11px}}

.kcf-city .kc-building-list{display:grid;gap:10px}.kcf-city .kc-building-item{padding:14px;border:1px solid #d4dfd4;border-radius:12px;background:#f5f6ec}.kcf-city .kc-building-item strong{display:block;font-size:14px;margin-bottom:10px}.kcf-city .kc-building-item>div{display:flex;gap:8px;flex-wrap:wrap}.kcf-city .kc-building-item button{flex:1;min-height:44px;font-size:12px;margin:0}.kcf-city .kc-building-item button:first-child{background:#236f60;color:white}.kcf-city .kc-dialog select[aria-label="建てたものの種類"]{width:100%;margin:0;min-height:44px}

.kcf-city .kc-build-categories{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 16px}.kcf-city .kc-build-categories button{min-height:44px;padding:8px 12px;font-size:12px;margin:0}.kcf-city .kc-build-categories button[aria-pressed="true"]{background:#236f60;color:#fff}.kcf-city .kc-catalog button{min-height:88px;border-radius:12px}.kcf-city .kc-catalog button:hover{background:#edf2e5}

.kcf-city .kc-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.kcf-city .kc-palette button{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:8px;font-size:12px}.kcf-city .kc-palette button[aria-pressed="true"]{outline:2px solid #216b5e;background:#e8f0df}.kcf-city .kc-color-swatch{width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:1px solid #638377}.kcf-city .kc-building-item small{display:block;margin:-4px 0 12px;color:#56716a}.kcf-city .kc-building-item>div{display:grid;grid-template-columns:1fr 1fr}.kcf-city .kc-building-item>div button:last-child:nth-child(3){grid-column:1/-1}
.kcf-city .kc-palette button[aria-pressed="true"]{color:#174c43;font-weight:700}

.kcf-city .kc-building-image-preview{display:block;max-width:100%;width:auto;max-height:100px;object-fit:contain;margin:8px 0}.kcf-city .kc-building-image-preview[hidden]{display:none}.kcf-city .kc-dialog label>select{display:block;width:100%;margin:8px 0;min-height:44px}

.kcf-city .kc-underground{position:absolute;inset:0;background:#455659;z-index:50;display:flex;flex-direction:column;min-height:520px}.kcf-city .kc-underground-head{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:10px;background:#f4f1e5}.kcf-city .kc-underground-head strong{width:100%}.kcf-city .kc-underground button{min-height:44px;font-size:12px;padding:8px 10px}.kcf-city .kc-underground-view{flex:1;min-height:280px;touch-action:none;overflow:hidden}.kcf-city .kc-underground-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;background:#edf1e7;padding:10px;touch-action:none}.kcf-city .kc-underground-controls span{width:100%;text-align:center;font-size:11px}.kcf-city .kc-underground-panel{position:absolute;top:116px;right:10px;bottom:110px;width:min(340px,calc(100% - 20px));overflow:auto;background:#fcf8eaf5;padding:14px;border-radius:14px;box-sizing:border-box;z-index:2}.kcf-city .kc-underground-panel[hidden]{display:none}.kcf-city .kc-underground-panel label{display:block;font-size:12px;margin:12px 0}.kcf-city .kc-underground-panel input,.kcf-city .kc-underground-panel select{display:block;box-sizing:border-box;width:100%;min-height:38px}.kcf-city .kc-underground-panel p{font-size:12px;line-height:1.6}.kcf-city .kc-underground-panel button{margin:4px 4px 4px 0}.kcf-city .kc-underground-view canvas{display:block}

/* Viewport-bound underground UI: independent of WordPress page scroll and theme containers. */
.kcf-city .kc-underground{position:fixed;inset:0;min-height:0;height:100vh;height:100dvh;z-index:1000;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overscroll-behavior:contain}
.kcf-city .kc-underground-head{flex:none;position:relative;z-index:4;padding:8px;gap:5px}
.kcf-city .kc-underground-head strong{width:auto;flex:1;font-size:13px}
.kcf-city .kc-underground-exit{background:#1a6959;color:#fff;font-weight:700;min-width:112px}
.kcf-city .kc-underground-view{min-height:0;position:relative}
.kcf-city .kc-underground-view canvas{position:absolute;inset:0}
.kcf-city .kc-underground-controls{flex:none;padding:6px;z-index:3}
.kcf-city .kc-underground-panel{top:116px;bottom:100px}
@media(max-height:500px){.kcf-city .kc-underground-head strong{display:none}.kcf-city .kc-underground-head{flex-wrap:nowrap}.kcf-city .kc-underground-head button{flex:1;padding:5px;font-size:11px;min-width:0}.kcf-city .kc-underground-controls span{display:none}.kcf-city .kc-underground-panel{top:60px;bottom:60px}}

.kcf-city .kc-underground-head strong{flex:1 0 100%}.kcf-city .kc-underground-exit:hover{background:#124b40;color:#fff}

/* Keep underground controls inside the scene, above the canvas. Native dialog
   uses the browser top layer so the arcade's fixed navigation cannot overlap. */
.kcf-city dialog.kc-underground{width:100vw;max-width:none;max-height:none;margin:0;border:0;box-sizing:border-box;color:#183e39;background:#455659}
.kcf-city dialog.kc-underground::backdrop{background:#455659}
.kcf-city .kc-underground-head{background:#f4f1e5;color:#183e39;border-bottom:1px solid #ccd7cc}
.kcf-city .kc-underground-head button{background:#f6f4ec;color:#183e39;border:1px solid #c7d2c5;box-shadow:none}
.kcf-city .kc-underground-head .kc-underground-exit{background:#1a6959;color:white;border-color:#1a6959}
.kcf-city .kc-underground-head .kc-underground-exit:hover{background:#124b40;color:white}
.kcf-city .kc-underground-head button:disabled{color:#657771;background:#e8ebe2;opacity:1}
.kcf-city .kc-underground-controls{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);padding:8px;gap:8px;border:1px solid #f6f4ec70;border-radius:18px;background:#163c36cc;box-shadow:0 4px 18px #0003;z-index:3;user-select:none;-webkit-user-select:none}
.kcf-city .kc-underground-controls span{color:#fff;font-size:10px;line-height:1.4}
.kcf-city .kc-underground-controls button{min-height:52px;min-width:66px;padding:10px 14px;background:#f6f4ec;color:#183e39;border:1px solid #c7d2c5;font-size:14px;touch-action:none;-webkit-touch-callout:none}
.kcf-city .kc-underground-controls button:active{background:#ecd487;color:#183e39;transform:translateY(1px)}
@media(max-height:500px){.kcf-city .kc-underground-controls{bottom:8px;padding:5px}.kcf-city .kc-underground-controls button{min-height:44px;padding:7px 12px}.kcf-city .kc-underground-panel{bottom:75px}}
/* Shared ride console: large touch targets and an always reachable exit. */
.kcf-city .kc-tram-ride{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:340px;max-width:calc(100% - 28px);right:auto;top:70px;padding:14px;background:#f6f4ecfa;border:1px solid #b9cbbf;box-shadow:0 6px 24px #15382c26;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.kcf-city .kc-ride-heading{display:flex;align-items:center;gap:8px}.kcf-city .kc-ride-heading span{font-size:13px;flex:1;min-width:0}.kcf-city .kc-ride-heading button{flex:0 0 auto;width:auto;padding:8px 14px}
.kcf-city .kc-tram-ride small{font-size:12px;line-height:1.4}.kcf-city .kc-ride-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kcf-city .kc-tram-ride button{font-size:14px;min-height:48px;line-height:1.3;padding:9px 6px;touch-action:manipulation}
.kcf-city .kc-tram-compact{gap:8px}.kcf-city .kc-tram-compact button{font-size:14px;min-height:48px;min-width:72px;touch-action:manipulation}.kcf-city .kc-tram-compact button:last-child{border-color:#b69172;color:#674327}
@media(max-width:900px){
 .kcf-city.kc-tram-riding .kc-economy,.kcf-city.kc-tram-riding .kc-mobileplaces,.kcf-city.kc-tram-riding .kc-bottom,.kcf-city.kc-tram-riding .kc-righttools,.kcf-city.kc-tram-riding .kc-facility-map,.kcf-city.kc-tram-riding .kc-map-edges,.kcf-city.kc-tram-riding .kc-mapwrap{display:none!important}
 .kcf-city.kc-tram-riding .kc-stage{height:100svh;min-height:260px;max-height:none}
 .kcf-city .kc-tram-compact{top:auto;left:10px;right:10px;bottom:max(12px,env(safe-area-inset-bottom));padding:8px;display:grid;grid-template-columns:1.1fr 1fr .8fr;border:1px solid #c9d6cc;background:#f6f4ecf5;border-radius:16px;box-shadow:0 4px 22px #14352b25}
 .kcf-city .kc-tram-compact button{min-width:0;margin:0;font-size:15px;box-shadow:none}
 .kcf-city .kc-tram-ride{top:auto;bottom:calc(88px + env(safe-area-inset-bottom));left:10px;right:10px;width:auto;max-width:none;max-height:calc(100% - 110px - env(safe-area-inset-bottom));padding:12px;border-radius:18px;gap:7px}
 .kcf-city .kc-tram-ride span{width:auto}.kcf-city .kc-tram-route-status{flex-basis:auto}.kcf-city .kc-ride-heading button{width:auto}
 .kcf-city.kc-tram-riding .kc-notice{top:12px;pointer-events:none}
}
@media(max-width:900px) and (max-height:500px){.kcf-city .kc-tram-ride{left:auto;width:340px;max-width:calc(100% - 20px)}.kcf-city .kc-tram-compact{left:auto;width:340px;max-width:calc(100% - 20px)}}

.kcf-city .kc-city-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.kcf-city .kc-city-options button{min-height:64px;font-size:15px;padding:12px}.kcf-city .kc-city-options button:not(:disabled){background:#1a6959;color:#fff;border-color:#1a6959}.kcf-city .kc-city-options button:disabled{opacity:.55;cursor:default}@media(max-width:360px){.kcf-city .kc-city-options{grid-template-columns:1fr}}
