.borough-nav{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:clamp(12px,2vw,32px)}
#helpDialog p+p{margin-top:9px}#helpDialog .guide-previews a{color:#285b3c;font-weight:600;text-underline-offset:2px}
.borough-nav-button,.borough-card-link{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#284737;font-weight:700;font-size:13px;min-height:36px;padding:5px 10px;border-radius:5px}
.borough-nav-button:hover,.borough-card-link:hover{background:#e9eddc}
.borough-icon{display:inline-block;flex:none;image-rendering:pixelated;object-fit:contain;width:24px;height:24px}
.borough-nav-button .borough-icon{width:20px;height:20px}
.borough-card-link{margin-top:8px;padding:0;min-height:28px;color:#2e603f;border-radius:2px}.borough-card-link span{font-size:15px}
.borough-dialog{--bd-ink:#253a2d;--bd-muted:#566a58;--bd-line:#cbd1bc;--bd-field:#edf0df;--bd-cream:#faf8eb;--bd-green:#224b39;box-sizing:border-box;width:min(780px,calc(100% - 32px));max-height:calc(100dvh - 56px);max-width:none;padding:0;color:var(--bd-ink);background:var(--bd-cream);border:1px solid #52674e;border-radius:11px;box-shadow:0 22px 78px #10271955,0 3px 11px #11271726;overflow:auto;overscroll-behavior:contain;font-family:"DM Sans","Segoe UI",sans-serif}
.borough-dialog::backdrop{background:#162b216b;backdrop-filter:blur(2px)}
.borough-dialog:focus{outline:none}.borough-dialog *:focus-visible,.borough-nav-button:focus-visible,.borough-card-link:focus-visible{outline:3px solid #a5722d;outline-offset:2px}
.borough-dialog[data-mode=account],.borough-dialog[data-mode=claim],.borough-dialog[data-mode=waiting],.borough-dialog[data-mode=profile]{width:min(440px,calc(100% - 28px))}
.borough-header{display:flex;align-items:center;gap:14px;min-height:90px;padding:17px 23px;background:#233f32;color:#fff7db;border-bottom:4px solid #c89d59;position:relative;isolation:isolate;overflow:hidden}
.borough-header:after{content:"";pointer-events:none;z-index:-1;position:absolute;inset:0;background:linear-gradient(110deg,transparent 44%,#39604a66),repeating-linear-gradient(135deg,transparent 0 27px,#ffffff04 27px 28px)}
.borough-emblem{display:grid;place-items:center;background:#335441;border:1px solid #84a17c64;box-shadow:inset 0 1px #b0bd952e,inset 0 -3px #193929;flex:none;height:48px;width:48px;border-radius:5px}
.borough-emblem .borough-icon{width:34px;height:34px}
.borough-head-copy{min-width:0}.borough-subheading,.borough-mini-label{font-size:10px;font-weight:700;letter-spacing:1.55px;line-height:1.35}
.borough-subheading{color:#d9c48e}.borough-header h2{color:#fff9e8;font-family:"Young Serif",Georgia,serif;line-height:1.08;font-size:clamp(25px,4vw,36px);font-weight:400;letter-spacing:-1.2px;margin:3px 0 0;overflow-wrap:anywhere}
.borough-close{color:#f5f1d7;border:1px solid #849d83;background:#ffffff08;border-radius:5px;width:32px;height:32px;flex:none;margin-left:auto;font:24px/1 Arial,sans-serif}.borough-close:hover{background:#4b6651}.borough-close:disabled{opacity:.55}
.borough-content{padding:17px 22px 18px}.borough-content p{font-family:inherit}
.borough-stats,.borough-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.borough-stat{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 11px;background:#f0efdb;border:1px solid #c9cbb1;border-radius:4px;box-shadow:inset 0 2px #fffdf3,inset 0 -2px #d8d9c2}
.borough-stat>.borough-icon{width:27px;height:27px}.borough-stat div{min-width:0}
.borough-stat span,.borough-stat strong,.borough-person div>*{display:block}.borough-stat span,.borough-mini-label,.borough-person span,.borough-profile-mini>span,.borough-account-links small{color:var(--bd-muted);font-size:11px;font-weight:600}
.borough-stat strong{margin-top:2px;color:#2b4733;font-variant-numeric:tabular-nums;font-size:17px;line-height:1.12}
.borough-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 12px;padding:4px;border:1px solid #bcc7af;border-radius:6px;background:#e4e8d4}
.borough-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:38px;background:transparent;border-radius:3px;border:1px solid transparent;color:#4c5d4b;font:700 13px/1.2 "DM Sans","Segoe UI",sans-serif}
.borough-tabs .borough-icon{width:18px;height:18px}.borough-tabs button[aria-selected=true]{color:#fff9e4;background:#376244;border:1px solid #315238;box-shadow:inset 0 1px #66865e,inset 0 -2px #284c32}.borough-tabs button:hover:not([aria-selected=true]){background:#f3f3e1}
.borough-rank-grid{display:grid;grid-template-columns:minmax(0,1fr) 162px;gap:12px;align-items:stretch}.borough-table,.borough-profile-mini{border:1px solid #c5cdb7;border-radius:6px;overflow:hidden}
.borough-columnheads{display:grid;grid-template-columns:36px 1fr auto;gap:8px;padding:9px 11px;background:#e5ead6;color:#53684f;text-transform:uppercase;letter-spacing:.85px;font-weight:700;font-size:9px}
.borough-dialog .borough-ranking-list,.borough-overlay .borough-broadcast-list{padding:0;margin:0;list-style:none}
.borough-dialog .borough-ranking-list li{display:block;border:0;padding:0;font:inherit}.borough-ranking-list li+li{border-top:1px solid #d8ddca!important}
.borough-rank-row{width:100%;min-height:52px;display:flex;align-items:center;text-align:left;gap:9px;padding:7px 12px 7px 9px;background:#f9f8ec;border:0;border-left:3px solid transparent;border-radius:0;font:inherit}
.borough-ranking-list li:nth-child(2n) .borough-rank-row{background:#f1f2e4}
.borough-rank-row[aria-pressed=true]{background:#eff1db;border-left-color:#8b9c60}.borough-rank-row:hover{background:#e8edd7}
.borough-number{display:grid;align-items:center;text-align:center;flex:none;min-width:26px;font-family:"DM Sans",sans-serif;letter-spacing:.3px;font-variant-numeric:tabular-nums;line-height:1;color:#63715b;font-size:15px}
[data-rank="1"] .borough-number{color:#8c6821}[data-rank="2"] .borough-number{color:#63717b}[data-rank="3"] .borough-number{color:#96644d}
.borough-face{position:relative;flex:none;width:31px;height:31px;display:inline-grid;place-items:center;color:#fff9e6!important;font-size:14px;font-weight:700;background:var(--face-color,#637d64);border:1px solid #293b2c33;border-radius:4px;overflow:hidden;box-shadow:inset 0 1px #ffffff2e}
.borough-face img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover}
.borough-nick,.borough-value{color:var(--bd-ink)!important;font-size:13px}.borough-nick{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.borough-value{margin-left:auto;white-space:nowrap;font-size:12px;color:#536349!important}
.borough-profile-mini{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:13px 9px;gap:4px;background:#f0f1e1;text-align:center}
.borough-profile-mini>.borough-face{width:38px;height:38px;margin:2px 0;font-size:18px}.borough-mini-label{letter-spacing:.65px;text-transform:uppercase;font-size:9px}
.borough-profile-mini>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:13px}.borough-profile-mini>.borough-button{margin-top:6px}
.borough-mini-stats{display:grid;grid-template-columns:1fr auto;column-gap:9px;row-gap:4px;text-align:left;margin:9px 0 2px;padding:8px 4px 0;border-top:1px solid #c3c9b3;font-size:11px;width:100%;color:#5a6b52}.borough-mini-stats dd{margin:0;text-align:right;color:#2a452e;font-weight:700}
.borough-footer,.borough-actions,.borough-account-links,.borough-action-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.borough-footer{margin-top:14px}.borough-last,.borough-empty,.borough-code+small{font-size:12px;color:#51644e}.borough-dialog .borough-ranking-list .borough-empty{padding:19px 12px}
.borough-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:8px 14px;border:1px solid #afbaa1;border-radius:5px;background:#f5f4e6;color:#2b4934;font:700 13px/1.22 "DM Sans","Segoe UI",sans-serif;text-decoration:none;text-align:center}
.borough-button:hover{filter:brightness(.96)}.borough-button:disabled{opacity:.56;cursor:wait}.borough-button.primary{background:#315d43;border-color:#284b35;color:#fff7dd;box-shadow:inset 0 1px #71917066,inset 0 -2px #193d2a}
.borough-button.compact{min-height:29px;padding:4px 8px;font-size:11px}.borough-button.quiet{background:none;border-color:transparent;padding-inline:3px;min-height:32px;color:#3c6143}.borough-button.wide{width:100%}
.borough-content .borough-hint{font-size:14px;line-height:1.48;color:#425740;margin:0 0 14px}
.borough-person{display:flex;align-items:center;gap:12px;margin:0 0 15px}.borough-person .borough-face{width:46px;height:46px;font-size:20px}
.borough-person strong{overflow-wrap:anywhere;font-size:17px}.borough-person span{margin-top:3px}.borough-person>.borough-face{margin:0}
.borough-profile-stats{grid-template-columns:1fr 1fr}.borough-placements{display:flex;align-items:center;gap:8px;font-size:13px!important;margin:5px 0 15px!important}
.borough-placements .borough-icon{width:20px;height:20px}.borough-actions{justify-content:flex-start;flex-wrap:wrap}
.borough-account-links{margin-top:9px}.borough-feedback:not(:empty){font-size:13px!important;line-height:1.4!important;margin:10px 0 0!important;color:#425a45;overflow-wrap:anywhere}
.borough-claim-form{margin-top:13px}.borough-claim-form label,.borough-choices legend{display:block;color:#40533e;font-size:12px;font-weight:700;margin-bottom:5px}
.borough-input-row{display:flex;gap:6px}.borough-input-row input{min-width:0;flex:1;background:#fffdf4;border:1px solid #acb99d;border-radius:4px;font-family:inherit;font-size:15px;padding:8px 10px;color:#263a2e}
.borough-code{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 10px;background:#eaedda;border:1px solid #c3cbb4;border-radius:5px;margin-bottom:6px}
.borough-code code{overflow-wrap:anywhere;user-select:all;font:700 16px/1.25 Consolas,monospace;color:#284d35}.borough-code+.borough-feedback,.borough-code~.quiet{display:block}
.borough-dialog[data-mode=editor]{width:min(370px,calc(100% - 24px));position:fixed;inset:68px 15px auto auto;margin:0;max-height:calc(100dvh - 82px)}
.borough-dialog[data-mode=editor]::backdrop{background:#10241c12;backdrop-filter:none}
.borough-dialog[data-mode=editor] .borough-header{min-height:70px;padding:12px 15px;gap:9px}
.borough-dialog[data-mode=editor] .borough-header h2{font-size:23px}.borough-dialog[data-mode=editor] .borough-emblem{width:34px;height:34px}.borough-dialog[data-mode=editor] .borough-emblem img{width:25px;height:25px}
.borough-dialog[data-mode=editor] .borough-content{padding:13px 15px}.borough-choices{padding:0;margin:0 0 12px;border:none;min-width:0}
.borough-choices legend{padding:0;margin-bottom:6px}.borough-choice-rack{display:flex;gap:5px;flex-wrap:wrap}
.borough-choice{display:inline-flex;align-items:center;gap:5px;border:1px solid #c2cbb2;border-radius:4px;color:#41543f;background:#f4f3e4;padding:5px 7px;min-height:30px;font-size:11px;font-weight:650;line-height:1.2;cursor:pointer;position:relative}
.borough-choice i{width:12px;height:12px;border:1px solid #374b354d;box-shadow:inset 0 1px #ffffff52;border-radius:2px}.borough-choice input{position:absolute;width:1px;height:1px;opacity:0}
.borough-choice:has(input:checked){color:#263e28;border-color:#58754f;background:#e1e8cf;box-shadow:inset 0 -2px #719566}
.borough-choice:has(input:focus-visible){outline:3px solid #927137;outline-offset:2px}.borough-choice:hover{background:#e9eddb}.borough-choice:has(input:disabled){opacity:.55}
.borough-action-bar{padding-top:5px;justify-content:flex-end}.borough-action-bar .borough-button{min-height:35px}
.overlay .overlay-caption{display:none}.borough-overlay{position:absolute;top:max(10.5vh,env(safe-area-inset-top));left:max(5.4vw,env(safe-area-inset-left));width:clamp(220px,40%,460px);max-width:73vw;color:#fff9e2;pointer-events:none;border:1px solid #f8e3a7a6;border-radius:7px;overflow:hidden;background:#19382dee;box-shadow:0 6px 24px #182c2450}
.borough-broadcast-head{display:flex;align-items:center;gap:.62em;padding:.63em .8em;background:#254c3df2;border-bottom:2px solid #caac69;font-size:clamp(14px,1.85vw,24px)}
.borough-broadcast-head>.borough-icon{width:1.6em;height:1.6em}.borough-broadcast-head small,.borough-ov-position{font-size:.47em;letter-spacing:1.25px;font-weight:750;color:#dfcc95}
.borough-broadcast-head h2{font:400 1.22em/1.02 "Young Serif",Georgia,serif;color:#fff8e3;margin:.12em 0 0}.borough-ov-position{margin-left:auto;white-space:nowrap}
.borough-ov-position{text-align:right}.borough-ov-position>*{display:block}.borough-ov-position strong{margin-top:3px;color:#fff5d9;font-size:1.2em;letter-spacing:0}
.borough-broadcast-list li{display:flex;align-items:center;gap:.55em;min-height:1.95em;border-bottom:1px solid #edf2d62e;padding:.32em .73em;font:650 clamp(14px,1.95vw,24px)/1.2 "DM Sans","Segoe UI",sans-serif}
.borough-broadcast-list li:last-child{border-bottom:0}.borough-broadcast-list .borough-number{display:inline-block;min-width:1.3em;text-align:left;color:#e2c781;font-size:.8em}
.borough-broadcast-list li>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.borough-broadcast-list li>strong{font-size:.7em;white-space:nowrap;color:#d4dfc4;margin-left:auto}
.borough-broadcast-list .borough-ov-empty{font-size:clamp(12px,1.5vw,17px);color:#dee3d1;padding:.72em .9em;font-weight:500}
@media(max-width:760px){
 .mast{height:91px;display:grid;grid-template-columns:1fr auto;grid-template-rows:48px 39px;padding:0 13px;column-gap:5px}
 .mast>.brand{grid-column:1;grid-row:1}.mast-right{grid-column:2;grid-row:1}.borough-nav{grid-column:1/-1;grid-row:2;justify-self:start;margin:0;gap:3px}
 .borough-nav-button{min-height:33px;padding:3px 9px;font-size:12px}.borough-nav-button:first-child{padding-left:0}.frame{height:calc(100dvh - 91px)}
 .film .frame,.overlay .frame{height:100dvh}
 .borough-dialog[data-mode=editor]{inset:auto 12px max(8px,env(safe-area-inset-bottom)) auto;width:min(430px,calc(100% - 24px));max-height:58dvh}
}
@media(max-width:560px){
 .borough-dialog{width:calc(100% - 18px);max-height:calc(100dvh - 22px);border-radius:8px}.borough-header{padding:13px 14px;gap:10px;min-height:72px}.borough-emblem{width:37px;height:37px}.borough-emblem .borough-icon{width:27px;height:27px}.borough-header h2{font-size:25px}.borough-content{padding:12px}
 .borough-stats{gap:4px;margin-bottom:9px}.borough-stat{gap:4px;padding:7px 5px}.borough-stat>.borough-icon{width:17px;height:17px}.borough-stat strong{font-size:14px}.borough-stat span{font-size:9px}
 .borough-tabs{margin-bottom:8px;gap:2px;padding:3px}.borough-tabs button{font-size:12px;gap:4px;min-height:35px}.borough-tabs .borough-icon{width:16px;height:16px}
 .borough-rank-grid{grid-template-columns:1fr;gap:8px}.borough-rank-row{min-height:44px}.borough-face{width:27px;height:27px}
 .borough-profile-mini{display:grid;grid-template-columns:32px minmax(0,1fr) auto;text-align:left;justify-content:normal;align-items:center;column-gap:8px;row-gap:1px;padding:7px 9px}
 .borough-profile-mini>.borough-mini-label{display:none}.borough-profile-mini>.borough-face{width:31px;height:31px;grid-column:1;grid-row:1/3;margin:0}.borough-profile-mini>strong{grid-column:2;grid-row:1}.borough-profile-mini>span:not(.borough-face){grid-column:2;grid-row:2}.borough-profile-mini>.borough-button{grid-column:3;grid-row:1/3;margin:0}
 .borough-profile-mini>.borough-mini-stats{display:none}
 .borough-footer{margin-top:7px}.borough-last{font-size:11px}.borough-overlay{width:55vw;min-width:0;top:11.5vh}.borough-broadcast-head{padding:.55em .6em}.borough-broadcast-list li{min-height:1.85em}
}
@media(max-height:600px) and (orientation:landscape){
 .borough-dialog[data-mode=editor]{inset:8px 12px auto auto;width:338px;max-height:calc(100dvh - 16px)}
 .borough-overlay{top:5vh;max-width:36vw}.borough-broadcast-list li{font-size:13px}
}
