/* Sunny's local city puzzle. All selectors stay inside its own game. */
.city-game{--city-blue:#004eaa;--city-ink:#173955;--city-muted:#597187;--city-gold:#f7cb45;--city-line:#d6e5ee;--city-green:#477f5b;background:#fff;border:1px solid #d6e5ef;border-radius:22px;box-shadow:0 18px 55px #142a460a;overflow:hidden;scroll-margin-top:16px;color:var(--city-ink)}
.city-game *, .city-game *:before,.city-game *:after{box-sizing:border-box}
.city-game button{font:inherit;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}
.city-game button:focus-visible{outline:3px solid #0061c4;outline-offset:3px}
.city-game button:disabled{cursor:default;opacity:1}
.city-game [tabindex="-1"]:focus{outline:none}
.city-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 25px;border-bottom:1px solid var(--city-line);background:#f0f7fc}
.city-topbar>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.city-kicker{font-size:8px;letter-spacing:.15em;font-weight:750;color:#63839b}
.city-topbar strong{font-size:13px;font-weight:650}
.city-quiet{border:1px solid #c8dce9;border-radius:25px;background:#fff;color:#195384;font-size:11px!important;font-weight:600!important;line-height:1.3;padding:10px 14px;min-height:38px;white-space:nowrap}
.city-quiet:hover{background:#eaf4fc;border-color:#92b5d2}
.city-primary{display:inline-flex;align-items:center;justify-content:center;gap:23px;border:0;border-radius:28px;padding:15px 23px;min-height:49px;background:#0053ae;color:#fff;font-size:14px!important;font-weight:650!important;box-shadow:0 5px 18px #004eaa1f}
.city-primary:hover{background:#003e87}
.city-label{font-size:9px;letter-spacing:.14em;font-weight:750;color:#0060a8}
.city-intro{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;position:relative;isolation:isolate;min-height:445px;align-items:center;padding:40px 6%;background:radial-gradient(ellipse at 77% 25%,#f9f5b9 0%,transparent 43%),linear-gradient(128deg,#edf7ff,#eef7ee 85%)}
.city-intro-copy{position:relative;z-index:1}
.city-intro h2{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.045em;font-weight:650;margin:14px 0 18px;color:#163e64}
.city-intro-copy>p{max-width:340px;font-size:14px;line-height:1.7;color:#49677f;margin:0 0 20px}
.city-intro-level{display:flex;flex-direction:column;gap:5px;font-size:11px;margin-bottom:19px}
.city-intro-level>span{font-weight:700;color:#275778}
.city-intro-level>strong{font-size:10px;font-weight:500;color:#5b756e}
.city-intro-copy>small{display:block;font-size:10px;color:#637e82;margin-top:13px}
.city-intro-art{position:relative;width:100%;height:320px;min-width:0}
.city-intro-art>img{position:absolute;inset:35px 12% 0;width:76%;height:280px;object-fit:contain;filter:drop-shadow(0 12px 12px #4a68351a)}
.city-art-node{position:absolute;z-index:2;display:block;width:67px;height:67px;padding:7px;background:#fffdf1;border:1px solid #d9dfbd;border-radius:17px;box-shadow:0 6px 14px #547a3420;color:#2c607e;transform:rotate(-5deg)}
.city-art-node svg{display:block;width:100%;height:100%}
.city-art-solar{top:0;left:8%}.city-art-lamp{top:46px;right:0;transform:rotate(7deg)}.city-art-bench{bottom:4px;right:7%;transform:rotate(-8deg)}.city-art-charge{bottom:27px;left:0;transform:rotate(6deg)}
.city-orbit{position:absolute;border:3px dashed #b7cbb8;border-radius:35px;opacity:.7;transform:rotate(-8deg);width:80%;height:74%;left:10%;top:11%}
.city-orbit-two{width:58%;height:95%;left:21%;top:0;transform:rotate(32deg);border-color:#dfd59b}
.city-play{padding:24px}
.city-level-head{display:flex;align-items:flex-start;justify-content:space-between;gap:17px;margin-bottom:20px}
.city-level-head h2{font-size:29px;font-weight:650;line-height:1.12;letter-spacing:-.035em;margin:7px 0 7px}
.city-level-head p{font-size:12px;line-height:1.55;color:var(--city-muted);margin:0;max-width:530px}
.city-level-head>.city-quiet{margin-top:8px}
.city-hud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce8f0;border:1px solid #dce8f0;border-radius:15px;overflow:hidden;margin-bottom:20px}
.city-hud>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;background:#f6fafc}
.city-hud span{font-size:10px;line-height:1.4;color:#60758b}
.city-hud strong{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;color:#0053a4}
.city-hud strong[data-urgent="true"]{color:#bd5d27}
.city-play-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:start}
.city-board-panel{min-width:0;padding:14px;background:#eaf1f3;border:1px solid #d7e3e8;border-radius:18px}
.city-board-caption{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px;font-size:9px;color:#4f6b7c}
.city-board-caption>span:first-child{display:flex;align-items:center;gap:6px}
.city-board-caption i{width:6px;height:6px;background:#e5b93e;border-radius:50%;flex-shrink:0}
.city-board-caption>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650;color:#7b939e}
.city-board{display:grid;grid-template-columns:repeat(var(--city-size),minmax(0,1fr));gap:5px;max-width:560px;margin:0 auto}
.city-tile{appearance:none;position:relative;display:block;aspect-ratio:1;width:100%;min-width:0;padding:0;border:1px solid #c6d7df;border-radius:10px;background:#fff;box-shadow:0 2px 1px #17395513;overflow:visible;transition:background .16s,border-color .16s,box-shadow .16s}
.city-tile svg{width:100%;height:100%;display:block;overflow:visible;border-radius:inherit}
.city-tile:not(:disabled):hover{background:#f4f9ff;border-color:#377db6;box-shadow:0 0 0 2px #0060b21c}
.city-tile:not(:disabled):active{box-shadow:inset 0 2px 3px #1e4b5d1a;background:#e8f2fb}
.city-tile[data-powered="true"]{background:#fff8d9;border-color:#e2c764;box-shadow:0 2px 1px #b3933125}
.city-tile[data-kind="source"]{background:#e3f2ea;border-color:#9dc5a8}
.city-tile[data-kind="target"]{background:#edf4fc;border-color:#b7cfdf}
.city-tile[data-kind="target"][data-powered="true"]{background:#f9efb6;border-color:#d2b345}
.city-tile-lock{position:absolute;bottom:4px;right:5px;font-size:7px;color:#7796a9;line-height:1;opacity:.8}
.city-cable-edge path{fill:none;stroke:#d9e3ea;stroke-width:20;stroke-linecap:round;stroke-linejoin:round}
.city-cable-core path{fill:none;stroke:#6d8b9e;stroke-width:10;stroke-linecap:round;stroke-linejoin:round}
.city-cable-joint{fill:#6d8b9e;stroke:#adc2cc;stroke-width:2}
.city-tile[data-powered="true"] .city-cable-edge path{stroke:#f7e5a1}
.city-tile[data-powered="true"] .city-cable-core path{stroke:#dda72e}
.city-tile[data-powered="true"] .city-cable-joint{fill:#ffda55;stroke:#cf9826}
.city-open-contact{fill:#bd785f;stroke:#fff;stroke-width:1}
.city-landmark-plate{fill:#f3f8fc;stroke:#c4d9e5;stroke-width:1.5}
.city-tile[data-powered="true"] .city-landmark-plate{fill:#fff6c5;stroke:#d6bb59}
.city-landmark-icon{color:#365a74}
.city-tile[data-powered="true"] .city-landmark-icon{color:#6f652d}
.city-tile-block{border-color:#d6e3db;background:#deebe1;box-shadow:none}
.city-board-footer{display:flex;justify-content:space-between;gap:8px;font-size:9px;line-height:1.5;color:#658092;margin-top:12px}
.city-board-footer>span:first-child{font-weight:600;color:#4b6b7e}
.city-guide{border:1px solid #dce8ee;border-radius:16px;background:#fbfdfd;overflow:hidden}
.city-guide-heading{padding:17px 17px 0}
.city-guide h3{font-size:19px;font-weight:650;line-height:1.2;letter-spacing:-.025em;margin:7px 0 0}
.city-guide ol{margin:14px 17px 17px;padding:0;list-style:none;counter-reset:city-rule}
.city-guide li{font-size:11px;color:#577186;line-height:1.6;position:relative;padding-left:25px;margin-top:12px;counter-increment:city-rule}
.city-guide li:before{content:counter(city-rule);position:absolute;left:0;top:0;background:#ebf2f7;color:#4f7897;border-radius:50%;width:17px;height:17px;font-size:9px;text-align:center;line-height:17px;font-weight:700}
.city-guide li strong{font-weight:650;color:#315875}
.city-targets{border-top:1px solid #e1eaf0;padding:8px 15px}
.city-target{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:10px;color:#5a7185}
.city-target-icon{width:31px;height:31px;border-radius:8px;background:#edf3f8;border:1px solid #d7e4ec;color:#55738b;padding:2px;flex-shrink:0}
.city-target-icon svg{width:100%;height:100%;display:block}
.city-target-name{flex:1;font-weight:600}
.city-target-state{font-size:9px;white-space:nowrap}
.city-target[data-powered="true"]{color:#5e773a}
.city-target[data-powered="true"] .city-target-icon{background:#fff6ce;border-color:#dcca81;color:#85712e}
.city-budget-tip{margin:0;padding:13px 16px;background:#f2f6f4;color:#5f786c;font-size:10px;line-height:1.6}
.city-status{margin:17px 0 0;min-height:18px;font-size:12px;line-height:1.6;color:#43667e;padding-left:17px;position:relative}
.city-status:before{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#6aa367;left:0;top:6px}
.city-result{padding:38px 7% 25px;background:linear-gradient(145deg,#f7fbff,#f3faef);text-align:center}
.city-result-copy{max-width:590px;margin:0 auto}
.city-result h2{font-size:clamp(27px,4vw,38px);line-height:1.12;letter-spacing:-.035em;font-weight:650;color:#0053a4;margin:11px 0 13px}
.city-result-copy>p{font-size:13px;line-height:1.65;color:#496b7f;max-width:500px;margin:0 auto 18px}
.city-result-actions{display:flex;flex-direction:column;align-items:center;gap:9px}
.city-result-actions>.city-primary{min-width:230px}
.city-result-actions>.city-quiet{border:0;box-shadow:none;background:transparent;min-height:32px;padding:6px 12px}
.city-celebration{position:relative;height:224px;max-width:650px;margin:20px auto 0;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse at 30% 20%,#49756f,transparent 70%),#193e5e}
.city-lit-town{position:absolute;inset:auto 0 0;height:auto}
.city-lit-town svg{display:block;width:100%;height:auto}
.city-celebration>img{position:absolute;width:125px;height:160px;left:8%;bottom:4px;object-fit:contain;filter:drop-shadow(0 8px 10px #0a2a4b44)}
.city-award{position:absolute;width:120px;height:150px;right:10%;top:22px;transform:rotate(6deg);filter:drop-shadow(0 7px 10px #071f3644)}
.city-award svg{display:block;width:100%;height:100%}
.city-award-caption{font-size:12px;font-weight:650;line-height:1.5;color:#7e7029;margin:15px auto 0}
.city-game[data-city-finale="true"] .city-result{background:radial-gradient(ellipse at 80% 10%,#fff4bd,transparent 60%),linear-gradient(135deg,#fffdf4,#eaf7ed)}
.city-game[data-city-phase="lost"] .city-result{padding-bottom:38px}
.city-bottom-note{display:flex;justify-content:space-between;gap:12px;padding:14px 24px;border-top:1px solid #e4ecf1;font-size:9px;line-height:1.6;color:#688294;background:#fff}
@media(max-width:850px){.city-play-layout{grid-template-columns:minmax(0,1fr) 200px;gap:16px}.city-play{padding:20px}.city-hud>div{padding:12px}.city-hud strong{font-size:19px}.city-hud span{font-size:9px}.city-board-panel{padding:11px}.city-guide-heading{padding:14px 13px 0}.city-guide ol{margin:12px 13px 14px}.city-guide h3{font-size:17px}.city-guide li{font-size:10px}.city-intro{padding:30px 5%}.city-intro-art{height:290px}.city-intro-art>img{height:250px}.city-art-node{width:57px;height:57px}}
@media(max-width:700px){.city-game{border-radius:17px}.city-topbar{padding:13px 15px;gap:9px}.city-topbar strong{font-size:11px}.city-kicker{font-size:7px}.city-quiet{font-size:10px!important;padding:8px 10px;min-height:36px}.city-intro{grid-template-columns:1fr;min-height:0;padding:27px 22px 18px;gap:18px}.city-intro h2{font-size:35px}.city-intro-copy>p{font-size:12px;max-width:100%;line-height:1.65}.city-intro-level{font-size:11px;margin-bottom:17px}.city-intro-art{height:190px;max-width:310px;margin:0 auto}.city-intro-art>img{height:190px;inset:0 13% 0;width:74%}.city-art-node{width:48px;height:48px;border-radius:13px;padding:5px}.city-art-solar{top:3px;left:10%}.city-art-lamp{top:20px;right:7%}.city-art-bench{bottom:5px;right:8%}.city-art-charge{left:8%;bottom:7px}.city-primary{min-height:46px;font-size:13px!important;padding:13px 20px}.city-play{padding:18px 13px}.city-level-head{gap:10px;margin-bottom:16px}.city-level-head h2{font-size:25px}.city-level-head p{font-size:11px}.city-level-head>.city-quiet{font-size:9px!important;padding:8px 9px}.city-hud{margin-bottom:15px;border-radius:12px}.city-hud>div{padding:10px 8px;flex-direction:column;align-items:flex-start;gap:5px}.city-hud span{font-size:8px;min-height:20px}.city-hud strong{font-size:20px}.city-play-layout{display:flex;flex-direction:column;gap:16px}.city-board-panel{width:100%;padding:10px;border-radius:14px}.city-board{gap:4px}.city-board-caption{font-size:8px;margin-bottom:10px}.city-board-footer{font-size:8px;margin-top:10px}.city-tile{border-radius:8px}.city-guide{width:100%;display:grid;grid-template-columns:1fr 1fr}.city-guide-heading{grid-column:1/-1;padding:15px 15px 0}.city-guide h3{font-size:19px}.city-guide ol{margin:13px 14px 15px}.city-guide li{font-size:10px;line-height:1.6}.city-targets{align-self:start;border-top:0;border-left:1px solid #e1eaf0;margin-top:16px;padding:0 10px}.city-target{gap:6px;font-size:9px}.city-target-icon{width:27px;height:27px}.city-target-state{font-size:8px}.city-budget-tip{grid-column:1/-1;font-size:10px;padding:13px 15px}.city-status{font-size:11px;margin-top:14px}.city-result{padding:26px 20px 20px}.city-result h2{font-size:29px}.city-result-copy>p{font-size:12px;line-height:1.6}.city-result-actions>.city-primary{min-width:0;width:100%;max-width:320px}.city-celebration{height:175px;margin-top:19px}.city-celebration>img{width:100px;height:139px;left:3%;bottom:0}.city-award{width:88px;height:110px;right:8%;top:22px}.city-award-caption{font-size:11px}.city-bottom-note{display:block;padding:12px 15px;font-size:9px}.city-bottom-note>span{display:block}.city-bottom-note>span+span{margin-top:3px}}
@media(max-width:420px){.city-play{padding:16px 0}.city-level-head,.city-hud,.city-status{margin-left:12px;margin-right:12px}.city-level-head{flex-wrap:wrap}.city-level-head>div{min-width:0;flex:1}.city-level-head>.city-quiet{max-width:105px}.city-level-head h2{font-size:24px}.city-label{font-size:8px}.city-board-panel{border-left:0;border-right:0;border-radius:0;padding:12px 2px}.city-board{gap:3px}.city-board-caption,.city-board-footer{margin-left:9px;margin-right:9px}.city-board-caption>span:first-child{gap:4px}.city-board-caption{font-size:8px}.city-tile{border-radius:6px}.city-guide{width:calc(100% - 24px);margin:0 12px;grid-template-columns:1fr}.city-targets{display:flex;flex-wrap:wrap;gap:5px 13px;border-left:0;border-top:1px solid #e1eaf0;padding:8px 12px;margin-top:0}.city-target{gap:5px}.city-target-name{font-size:9px}.city-guide ol{margin:10px 15px 15px}.city-guide li{margin-top:8px}.city-intro{padding:25px 20px 15px}.city-intro h2{font-size:32px}.city-intro-copy>small{font-size:9px}.city-topbar{padding:12px;gap:7px}.city-topbar strong{font-size:10px}.city-topbar .city-quiet{padding:8px;font-size:9px!important}.city-hud strong{font-size:18px}.city-hud span{font-size:8px}.city-result{padding:24px 17px 18px}.city-result h2{font-size:27px}.city-result-copy>p{font-size:11px}.city-celebration{height:155px}.city-celebration>img{height:124px;width:95px}.city-award{width:78px;height:98px;top:18px}.city-bottom-note{font-size:8px}}
@media(prefers-reduced-motion:reduce){.city-game *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:420px){.city-board-panel{padding-left:0;padding-right:0}.city-board{gap:2px}}

@media(max-width:700px){.city-game .city-quiet{min-height:44px}}
