:root{--ground:#eef1f4;--surface:#fff;--border:#e5e7eb;--border-strong:#d1d5db;--ink:#111827;--text-2:#374151;--muted:#4b5563;--accent:#ea580c;--accent-ink:#9a3412;--shadow:0 4px 16px #1118270f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{background:var(--ground);height:100%;color:var(--ink);margin:0;font:14px/1.4 Inter,system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden}button,input,select{font:inherit;color:inherit}button{cursor:pointer}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.topbar{z-index:1000;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:12px;height:56px;padding:0 16px;display:flex;position:fixed;inset:0 0 auto}.brand{letter-spacing:-.01em;white-space:nowrap;font-size:17px;font-weight:700}.spacer{flex:1}.seg{background:#f3f4f6;border-radius:8px;gap:2px;padding:3px;display:flex}.seg button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:6px 14px}.seg button[aria-selected=true],.seg button.on{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #00000014}.seg.full button{flex:1}.world-select{border:1px solid var(--border-strong);background:var(--surface);border-radius:8px;max-width:200px;height:36px;padding:0 8px}.search{border:1px solid var(--border-strong);color:#6b7280;border-radius:8px;align-items:center;gap:8px;width:240px;height:36px;padding:0 10px;display:flex}.search input{width:100%;color:var(--ink);background:0 0;border:0;outline:0}.search:focus-within{border-color:var(--ink)}.live{color:#166534;white-space:nowrap;background:#dcfce7;border-radius:999px;align-items:center;gap:8px;padding:6px 12px;font-size:13px;font-weight:600;display:flex}.live .dot{background:#16a34a;border-radius:50%;width:8px;height:8px}.live{cursor:pointer;border:0}.live.off{color:#991b1b;background:#fee2e2}.live.off .dot{background:#dc2626}.btn{border:1px solid var(--border-strong);background:var(--surface);white-space:nowrap;border-radius:8px;height:36px;padding:0 14px;font-weight:600}.btn:hover{border-color:var(--ink)}.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}.btn.block{flex:1;height:40px}#map{background:var(--ground);position:fixed;inset:56px 0 0}.leaflet-container{background:var(--ground);font:inherit}.leaflet-control-zoom{overflow:hidden;border:1px solid var(--border)!important;box-shadow:none!important;border-radius:8px!important;margin:0 16px 16px 0!important}.leaflet-control-zoom a{width:44px!important;height:44px!important;color:var(--ink)!important;font-size:20px!important;line-height:44px!important}.card{z-index:900;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;position:fixed}.legend{flex-direction:column;gap:12px;width:280px;max-height:calc(100vh - 140px);padding:16px;display:flex;top:72px;left:16px;overflow-y:auto}.legend hr{background:var(--border);border:0;width:100%;height:1px;margin:2px 0}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:12px;font-weight:600}.legend-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.legend-list li{align-items:center;gap:10px;display:flex}.legend-list .grow{flex:1}.swatch{border-radius:2px;flex-shrink:0;width:28px;height:8px}.swatch.dots{justify-content:space-around;align-items:center;display:flex}.swatch.dots i{background:#fff;width:3px;height:3px}.muted{color:var(--muted)}.accent{color:var(--accent-ink)}.end-badge{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:13px;font-weight:700;display:inline-flex}.end-bar{flex-shrink:0;justify-content:center;width:22px;display:inline-flex}.end-bar:before{content:"";background:var(--ink);width:4px;height:18px}.hint{color:var(--muted);margin:0;font-size:12px}.panel{flex-direction:column;gap:14px;width:360px;max-height:calc(100vh - 140px);padding:20px;display:flex;top:72px;right:16px;overflow-y:auto}.panel h1{letter-spacing:-.01em;margin:4px 0 0;font-size:22px;font-weight:700;line-height:1.25}.panel .head{align-items:flex-start;gap:12px;display:flex}.panel .head>div{flex:1}.panel p{color:var(--muted);margin:0;line-height:1.5}.icon-btn{background:#f3f4f6;border:0;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.tags{flex-wrap:wrap;gap:6px;display:flex}.tag{background:#f3f4f6;border-radius:6px;padding:4px 10px;font-size:13px;font-weight:600}.facts{grid-template-columns:110px 1fr;row-gap:8px;margin:0;display:grid}.facts dt{color:var(--muted)}.facts dd{font-variant-numeric:tabular-nums;margin:0}.checks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.check{border-radius:8px;align-items:center;gap:8px;padding:8px 10px;display:flex}.check svg{flex-shrink:0}.check .muted{font-size:12px}.check.yes{color:#065f46;background:#ecfdf5}.check.no{color:var(--muted);background:#f3f4f6}.row{gap:8px;display:flex}.list{margin:0;padding:0;list-style:none}.list li{border-top:1px solid #f3f4f6;align-items:center;gap:12px;padding:10px 0;display:flex}.list li>div{flex:1;min-width:0}.list .title{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.list .sub{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.list .btn{height:36px;font-size:13px}.empty{color:var(--muted);padding:6px 0;font-size:13px}.pin-dot{background:var(--ink);width:14px;height:14px;box-shadow:0 0 0 1px var(--border-strong);border:2px solid #fff;border-radius:50%;flex-shrink:0}.pin-dot.local{background:#7c3aed}.chip{z-index:900;background:var(--surface);border:1px solid var(--border);color:var(--text-2);font-variant-numeric:tabular-nums;border-radius:8px;padding:8px 12px;font-size:13px;position:fixed}.coords{bottom:16px;left:16px}.coords b{color:var(--ink)}.scale{align-items:center;gap:8px;display:flex;bottom:16px;right:76px}.scale-bar{border:2px solid var(--text-2);border-top:0;width:64px;height:6px}.pin-marker{position:relative}.pin-marker svg{position:absolute;top:-32px;left:-12px}.pin-marker .label{white-space:nowrap;border:1px solid var(--border-strong);color:var(--ink);background:#fff;border-radius:6px;padding:3px 8px;font-size:13px;font-weight:600;position:absolute;top:-30px;left:14px}.pin-marker.local .label{color:#5b21b6;border-color:#c4b5fd}.player-marker{position:relative}.player-marker .dot{background:#dc2626;border:3px solid #fff;border-radius:50%;width:18px;height:18px;position:absolute;top:-9px;left:-9px;box-shadow:0 1px 3px #0000004d}.player-marker.idle .dot{background:#6b7280}.player-marker .label{white-space:nowrap;color:#fff;background:#dc2626;border-radius:12px;padding:3px 10px;font-size:13px;font-weight:600;position:absolute;top:-12px;left:14px}.player-marker.idle .label{background:#6b7280}.explore-marker{background:var(--accent);color:#fff;cursor:pointer;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin:-12px 0 0 -12px;font-size:13px;font-weight:700;display:flex;box-shadow:0 1px 3px #00000040}dialog{border:1px solid var(--border);border-radius:12px;width:340px;padding:20px;box-shadow:0 16px 48px #11182733}dialog::backdrop{background:#11182759}dialog h3{margin:0}dialog form{gap:12px;display:grid}dialog label{gap:4px;font-size:13px;font-weight:600;display:grid}dialog input:not([type=radio]){border:1px solid var(--border-strong);border-radius:8px;height:38px;padding:0 10px;font-size:14px;font-weight:400}dialog fieldset{border:0;gap:6px;margin:0;padding:0;display:grid}dialog .radio{align-items:center;gap:8px;font-size:14px;font-weight:400;display:flex}dialog menu{justify-content:flex-end;gap:8px;margin:4px 0 0;padding:0;display:flex}@media (width<=900px){.search,.live,#export-png{display:none}.legend{width:calc(100% - 32px);max-height:35vh;top:auto;bottom:64px}.panel{width:calc(100% - 32px);max-height:40vh}.panel:empty{display:none}}.follow-chip{z-index:950;color:#fff;box-shadow:var(--shadow);white-space:nowrap;background:#dc2626;border-radius:999px;align-items:center;gap:10px;padding:6px 6px 6px 14px;font-size:14px;display:flex;position:fixed;top:72px;left:50%;transform:translate(-50%)}.follow-chip[hidden]{display:none}.follow-chip .dot{background:#fff;border-radius:50%;width:8px;height:8px;animation:1.2s infinite pulse}.follow-chip .icon-btn{color:#fff;background:#fff3;border-radius:999px;width:28px;height:28px}.player-marker,.player-marker .dot,.player-marker .label{cursor:pointer}.player-marker.followed .dot{box-shadow:0 0 0 6px #dc262640,0 1px 3px #0000004d}@keyframes pulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.follow-chip .dot{animation:none}}.repair-marker{color:#fff;background:#dc2626;border:2px solid #fff;border-radius:6px;justify-content:center;align-items:center;width:20px;height:20px;margin:-10px 0 0 -10px;font-size:13px;font-weight:700;display:flex;box-shadow:0 1px 3px #00000040}.repair-badge{color:#fff;background:#dc2626;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:13px;font-weight:700;display:inline-flex}.kinds{background:#f3f4f6;border-radius:8px;gap:2px;padding:3px!important;display:flex!important}.kinds .radio{cursor:pointer;border-radius:6px;flex:1;justify-content:center;padding:6px 4px;font-size:13px!important}.kinds .radio:has(input:checked){background:#fff;font-weight:600;box-shadow:0 1px 2px #00000014}.kinds input{opacity:0;pointer-events:none;position:absolute}.color-row{align-items:center;gap:10px!important;display:flex!important}.color-row input[type=color],.panel input[type=color]{border:1px solid var(--border-strong);background:#fff;border-radius:8px;width:44px;height:32px!important;padding:2px!important}.draw-chip{background:var(--ink);padding:6px 6px 6px 14px}.draw-chip .btn{height:30px;color:var(--ink);font-size:13px}.draw-chip .btn.dark{color:var(--ink);background:#fff}.warn-marker{position:relative}.warn-marker svg{filter:drop-shadow(0 1px 2px #0000004d);position:absolute;top:-24px;left:-13px}.warn-marker .label,.plan-label{white-space:nowrap;color:#713f12;background:#fef9c3;border:1px solid #facc15;border-radius:6px;padding:3px 8px;font-size:13px;font-weight:600;position:absolute;top:-24px;left:16px}.plan-label{border-color:var(--border-strong);color:var(--ink);background:#fff;display:inline-block;position:static;transform:translate(10px,-50%)}.pin-marker .label{border-left:4px solid var(--pin,var(--border-strong))}.repair-marker{cursor:pointer}.repair-marker.on{outline:3px solid #dc262659}details.sec>summary{cursor:pointer;align-items:center;gap:8px;margin-top:6px;list-style:none;display:flex}details.sec>summary::-webkit-details-marker{display:none}details.sec>summary:before{content:"▸";color:var(--muted);font-size:12px;transition:transform .15s}details.sec[open]>summary:before{transform:rotate(90deg)}details.sec>summary .grow{flex:1}.toggle{color:var(--muted);text-transform:none;letter-spacing:0;align-items:center;gap:6px;font-size:12px;font-weight:500;display:inline-flex}.list .hidden-item{opacity:.45}.list .title.link{cursor:pointer}.list .title.link:hover{text-decoration:underline}.kind-ico{flex-shrink:0;justify-content:center;width:22px;display:inline-flex}.edit-row{align-items:center;gap:8px;display:flex}.edit-row input[type=text]{border:1px solid var(--border-strong);border-radius:8px;flex:1;min-width:0;height:36px;padding:0 10px}.seg-name{white-space:nowrap;background:var(--ink);color:#fff;cursor:pointer;border-radius:6px;padding:3px 8px;font-size:12px;font-weight:600;display:inline-block;transform:translate(-50%,-50%);box-shadow:0 1px 3px #00000040}.user-chip{height:36px;color:var(--ink);white-space:nowrap;background:#f3f4f6;border-radius:999px;align-items:center;gap:8px;padding:0 12px;font-weight:600;text-decoration:none;display:inline-flex}.user-chip:hover{background:#e5e7eb}body.page{justify-content:center;align-items:flex-start;padding:64px 16px;display:flex;overflow:auto}.page-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:14px;width:440px;max-width:100%;padding:28px;display:flex}.page-card.wide{width:720px}.page-card h1{margin:0;font-size:22px}.page-card a.brand{color:var(--ink);text-decoration:none}.page-card .small{margin:0;font-size:13px}.page-card p{margin:0}.command{border:1px dashed var(--border-strong);letter-spacing:.04em;background:#f9fafb;border-radius:10px;padding:18px;font:600 26px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.command b{color:var(--accent-ink)}.row-between{justify-content:space-between;align-items:center;gap:12px;display:flex}.token{color:#f9fafb;-webkit-user-select:all;user-select:all;background:#111827;border-radius:8px;margin:0;padding:12px;font-size:13px;overflow-x:auto}.players{border-collapse:collapse;width:100%;font-size:13px}.players th,.players td{text-align:left;border-top:1px solid #f3f4f6;padding:8px 6px}.players th{color:var(--muted);font-weight:600}
