.tgg{--nv:#14304a;--or:#c2410c;--ln:#e2e8f0;--bg:#f6f8fb;font-family:inherit;color:#1e293b;position:relative;background:#0f2233;border-radius:20px;overflow:hidden;min-height:640px;font-size:15px;line-height:1.5;user-select:none}
.tgg *{box-sizing:border-box}
.tgg a{color:#c2410c}
.tgg-btn{border:0;border-radius:12px;padding:10px 16px;font-weight:700;cursor:pointer;background:#e2e8f0;color:#14304a;font-size:15px;line-height:1.25;transition:transform .1s,background .15s}
.tgg-btn:hover{background:#cbd5e1}.tgg-btn:active{transform:scale(.97)}
.tgg-btn.pri{background:#f59e0b;color:#14304a}.tgg-btn.pri:hover{background:#fbbf24}
.tgg-btn.danger{background:#fee2e2;color:#991b1b}
.tgg-btn.big{padding:14px 24px;font-size:17px}.tgg-btn.sm{padding:7px 11px;font-size:13.5px;border-radius:10px}
.tgg-btn:disabled{opacity:.45;cursor:not-allowed}
.tgg-btn small{font-weight:600;opacity:.75}
/* start */
.tgg-start{padding:28px 22px;color:#e2e8f0;background:radial-gradient(1200px 500px at 70% -10%,rgba(245,158,11,.25),transparent),linear-gradient(160deg,#0f2233,#14304a 60%,#0c1c2b);min-height:640px}
.tgg-hero{max-width:820px}.tgg-hero .k{display:inline-block;background:#f59e0b;color:#14304a;font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:4px 12px}
.tgg-hero h2{color:#fff;font-size:clamp(34px,6vw,58px);margin:10px 0 6px;letter-spacing:-.01em;text-shadow:0 4px 30px rgba(0,0,0,.35)}
.tgg-hero p{color:#cbd5e1;font-size:17px;max-width:720px}
.tgg-start h3{color:#fff;font-size:26px;margin:0 0 14px}
.tgg-acts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tgg-acts.center{margin:22px 0}
.tgg-how{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:26px}
.tgg-how div{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px;font-size:14px;color:#cbd5e1}.tgg-how b{display:block;color:#fff;margin-bottom:4px;font-size:15px}
.tgg-in{width:100%;max-width:420px;padding:13px 16px;border-radius:12px;border:2px solid #334155;background:#0b1826;color:#fff;font-size:17px;margin-bottom:16px}
.tgg-classes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.tgg-class{text-align:left;background:rgba(255,255,255,.06);border:2px solid rgba(255,255,255,.14);border-radius:16px;padding:14px;color:#cbd5e1;cursor:pointer;display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.tgg-class em{font-style:normal;font-size:34px}.tgg-class b{color:#fff;font-size:16px}.tgg-class small{color:#fbbf24;font-weight:700}
.tgg-class.on{border-color:#f59e0b;background:rgba(245,158,11,.14)}
/* gra */
.tgg-top{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;padding:10px 12px;background:#0b1826;color:#e2e8f0}
.tgg-who{display:flex;align-items:center;gap:8px;margin-right:6px}.tgg-who .av{font-size:24px}.tgg-who b{color:#fff}.tgg-who small{color:#fbbf24;font-weight:700}
.tgg-bar{position:relative;width:118px;height:20px;background:#1e293b;border-radius:999px;overflow:hidden}.tgg-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;transition:width .4s}
.tgg-bar span{position:relative;font-size:11.5px;font-weight:700;color:#fff;padding-left:8px;line-height:20px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.tgg-chip{background:#1e293b;border-radius:999px;padding:3px 10px;font-size:13px;font-weight:600;white-space:nowrap}
.tgg-main{display:grid;grid-template-columns:minmax(0,1fr) 370px;min-height:560px}
.tgg-mapw{position:relative;background:#cfe0c6;overflow:hidden;touch-action:none}
.tgg-svg{width:100%;height:100%;min-height:560px;display:block;cursor:grab}
.tgg-svg:active{cursor:grabbing}
.tgg-node{cursor:default}.tgg-node.near{cursor:pointer}
.tgg-node circle,.tgg-node path{fill:#fff;stroke:#14304a;stroke-width:3}
.tgg-node.t-town circle{fill:#14304a}.tgg-node.t-hut circle{fill:#fef3c7;stroke:#92400e}
.tgg-node.t-wkt path{fill:#f59e0b;stroke:#7c2d12}.tgg-node.t-peak path{fill:#e2e8f0}
.tgg-node.t-trailhead circle{fill:#16a34a;stroke:#fff}.tgg-node.t-lake circle{fill:#60a5fa;stroke:#1e3a8a}
.tgg-node.t-pass circle{fill:#94a3b8;stroke:#fff;stroke-width:2}
.tgg-node.done path{fill:#22c55e;stroke:#14532d}
.tgg-node.near circle,.tgg-node.near path{stroke:#f59e0b;stroke-width:5}
.tgg-node.near:hover circle,.tgg-node.near:hover path,.tgg-node.near:focus circle,.tgg-node.near:focus path{stroke:#c2410c;stroke-width:7}
.tgg-node.cur circle,.tgg-node.cur path{stroke:#dc2626;stroke-width:6;animation:tggp 1.6s infinite}
@keyframes tggp{50%{stroke-width:11;stroke-opacity:.5}}
.tgg-node .ico{font-size:14px;text-anchor:middle;font-weight:800;fill:#fff;pointer-events:none}
.tgg-node.t-wkt .ico{fill:#3b1a06;font-size:13px}.tgg-node.t-trailhead .ico{font-size:12px}
.tgg-node .lbl{font-size:19px;font-weight:700;text-anchor:middle;fill:#0f172a;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;pointer-events:none}
.tgg-node.t-wkt .lbl{font-size:21px;fill:#7c2d12}.tgg-node.near .lbl{fill:#c2410c}
.tgg-node .me{font-size:34px;text-anchor:middle;pointer-events:none}
.tgg-zoom{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:6px}
.tgg-zoom button{width:38px;height:38px;border-radius:10px;border:0;background:rgba(255,255,255,.92);font-size:18px;font-weight:800;color:#14304a;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.tgg-legend{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.9);border-radius:10px;padding:6px 10px;font-size:12px;display:flex;flex-wrap:wrap;gap:4px 12px;max-width:calc(100% - 70px)}
.tgg-legend i{display:inline-block;width:20px;height:4px;vertical-align:middle;margin-right:4px;border-radius:2px}.tgg-legend i.d{background:repeating-linear-gradient(90deg,#7c3aed 0 7px,transparent 7px 11px)}.tgg-legend i.b{background:repeating-linear-gradient(90deg,#64748b 0 3px,transparent 3px 7px)}
.tgg-side{background:#fff;display:flex;flex-direction:column;max-height:720px}
.tgg-tabs{display:flex;border-bottom:1px solid var(--ln)}
.tgg-tabs button{flex:1;border:0;background:#f8fafc;padding:10px 4px;font-size:19px;cursor:pointer;border-bottom:3px solid transparent}
.tgg-tabs button.on{background:#fff;border-bottom-color:#f59e0b}
.tgg-pbody{padding:14px;overflow-y:auto;flex:1}
.tgg-pbody h4{margin:0 0 8px;color:var(--nv);font-size:18px}.tgg-pbody h4 small{color:#64748b;font-weight:600}
.tgg-pbody h5{margin:12px 0 6px;color:var(--nv);font-size:14px;text-transform:uppercase;letter-spacing:.04em}
.tgg-loc p{margin:0 0 6px;font-size:14.5px}
.tgg-small{font-size:12.8px;color:#64748b}
.tgg-li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;width:100%;text-align:left;background:#f8fafc;border:1px solid var(--ln);border-radius:12px;padding:9px 11px;margin:0 0 6px;cursor:pointer;font-size:14px;color:#0f172a}
.tgg-li:hover{border-color:#f59e0b;background:#fffbeb}
.tgg-li i{width:12px;height:12px;border-radius:3px;flex:0 0 12px}.tgg-li em{font-style:normal;font-size:20px;width:26px;text-align:center}
.tgg-li b{flex:1}.tgg-li span{flex-basis:100%;font-size:12.5px;color:#64748b;padding-left:20px}
.tgg-li.warn{border-color:#fecaca;background:#fff7f7}.tgg-li.own{cursor:default;background:#f0fdf4;border-color:#bbf7d0}.tgg-li.lock{opacity:.6;cursor:default}
.tgg-li .tgg-btn{margin-left:auto}
.tgg-w{border-radius:10px;padding:7px 10px;margin:6px 0;font-size:13.5px}
.tgg-w.bad{background:#fee2e2;color:#991b1b}.tgg-w.warn{background:#fef3c7;color:#92400e}.tgg-w.ok{background:#dcfce7;color:#166534}.tgg-w.info{background:#e0f2fe;color:#075985}
.tgg-stats{display:grid;gap:6px;margin:8px 0}.tgg-stat{display:flex;align-items:center;gap:10px;background:#f8fafc;border-radius:10px;padding:7px 10px}.tgg-stat span{flex:1}.tgg-stat b{font-size:18px;color:var(--nv)}
.tgg-log{list-style:none;padding:0;margin:0;font-size:13.5px}.tgg-log li{padding:5px 0;border-bottom:1px dashed var(--ln)}.tgg-log li small{color:#94a3b8}.tgg-log li.ach{color:#166534;font-weight:600}.tgg-log li.bad{color:#991b1b}
.tgg-last{background:#0b1826;color:#cbd5e1;font-size:13px;padding:8px 12px}.tgg-last div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgg-last div:first-child{color:#fff}.tgg-last .ach{color:#86efac}.tgg-last .bad{color:#fca5a5}
/* modal */
.tgg-ov{position:absolute;inset:0;background:rgba(8,18,30,.6);display:flex;align-items:center;justify-content:center;z-index:50;padding:14px;animation:tggf .15s}
@keyframes tggf{from{opacity:0}}
.tgg-modal{background:#fff;border-radius:18px;max-width:480px;width:100%;max-height:92%;overflow:auto;padding:18px 18px 14px;box-shadow:0 20px 60px rgba(0,0,0,.4);animation:tggu .2s}
.tgg-modal.wide{max-width:640px}
@keyframes tggu{from{transform:translateY(14px)}}
.tgg-modal h3{margin:0 0 8px;color:var(--nv);font-size:20px}
.tgg-mb{font-size:15px}.tgg-mb p{margin:0 0 8px}.tgg-mb ul{margin:0 0 8px;padding-left:20px}
.tgg-mbtn{display:flex;flex-direction:column;gap:7px;margin-top:12px}.tgg-mbtn .tgg-btn{text-align:left}
.tgg-route{background:#f1f5f9;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:6px}
.tgg-pitch{background:#f5f3ff;border-radius:12px;padding:10px 12px;font-size:14px}
.tgg-pbar{display:flex;gap:4px;margin-bottom:8px}.tgg-pbar span{flex:1;height:8px;border-radius:4px;background:#ddd6fe}.tgg-pbar span.done{background:#7c3aed}.tgg-pbar span.cur{background:#f59e0b}
.tgg-ta{width:100%;min-height:110px;font-family:monospace;font-size:12px;border-radius:10px;border:1px solid var(--ln);padding:8px}
.tgg-tab{width:100%;border-collapse:collapse;font-size:14px}.tgg-tab th,.tgg-tab td{padding:6px 8px;border-bottom:1px solid var(--ln);text-align:left}
.tgg-list{max-height:52vh;overflow:auto}
.tgg-toast{position:absolute;left:50%;top:70px;transform:translate(-50%,-20px);opacity:0;background:#14304a;color:#fff;padding:10px 18px;border-radius:999px;font-weight:600;z-index:60;transition:all .35s;box-shadow:0 8px 24px rgba(0,0,0,.3);white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis}
.tgg-toast.on{opacity:1;transform:translate(-50%,0)}
@media(max-width:960px){.tgg-main{grid-template-columns:1fr}.tgg-svg{min-height:420px;height:58vh}.tgg-side{max-height:none}.tgg-how,.tgg-classes{grid-template-columns:1fr 1fr}.tgg-bar{width:96px}}
@media(max-width:560px){.tgg-how,.tgg-classes{grid-template-columns:1fr}.tgg{border-radius:14px}.tgg-chip{font-size:12px}.tgg-legend{display:none}}
.tgg:fullscreen{border-radius:0;overflow:auto}

.tgg-chip.debt{background:#7f1d1d;color:#fff}
