.hsg{--hsg-cream:#f1e5c8;--hsg-gold:#d4b77b;--hsg-ink:#122d31;--hsg-line:rgba(213,191,141,.30);position:relative;isolation:isolate;border-radius:17px;overflow:hidden;border:1px solid #756d53;background:#152f32;color:var(--hsg-cream);font:400 16px/1.5 system-ui,sans-serif;box-shadow:0 14px 48px #071a1b20}
.hsg *{box-sizing:border-box}
.hsg-stage{position:relative;background:#193337}
.hsg canvas{display:block;width:100%;height:clamp(315px,53vh,560px);touch-action:none;cursor:grab;color-scheme:dark;background:#142e30}
.hsg canvas:active{cursor:grabbing}
.hsg canvas:focus-visible{outline:3px solid var(--hsg-gold);outline-offset:-4px}
.hsg-top{position:absolute;top:14px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:9px;pointer-events:none}
.hsg-top span{padding:5px 10px;border:1px solid #cfbd8d80;background:#132c2fe6;color:#f4e4bf;font:600 .76rem/1.45 system-ui,sans-serif;letter-spacing:.085em;border-radius:20px}
.hsg-top .hsg-heading{font-weight:500;letter-spacing:0}
.hsg-cross{position:absolute;top:48%;left:50%;width:5px;height:5px;border-radius:100%;background:#e7ddb6;box-shadow:0 0 0 2px #20353755;pointer-events:none}
.hsg:has(.hsg-layers) .hsg-cross{display:none}
.hsg-actions{position:absolute;right:14px;bottom:14px;display:flex;gap:3px;padding:4px;border-radius:11px;background:#11282be8;border:1px solid #ae9d73a0}
.hsg button{font:600 .9rem/1.35 system-ui,sans-serif;cursor:pointer;transition:background .14s,color .14s;border-radius:7px}
.hsg button:focus-visible{outline:3px solid #f4d797;outline-offset:2px}
.hsg-actions button{width:38px;height:38px;display:grid;place-items:center;background:transparent;color:var(--hsg-cream);border:0;padding:0}
.hsg-actions button:hover,.hsg-actions button:active{background:#3a5350}
.hsg-below{padding:16px 19px;background:linear-gradient(110deg,#142d30,#213d3c);border-top:1px solid var(--hsg-line)}
.hsg-guide{display:flex;align-items:baseline;column-gap:12px;flex-wrap:wrap}
.hsg-guide b{font:600 1.2rem/1.35 Georgia,serif;color:var(--hsg-cream)}
.hsg-guide span{color:#c1d0c7;font-size:.91rem}
.hsg-stops,.hsg-layers{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.hsg-stops button,.hsg-layers button,.hsg-note button{padding:7px 11px;color:#e2ddca;background:transparent;border:1px solid var(--hsg-line)}
.hsg-stops button[aria-pressed="true"],.hsg-layers button[aria-pressed="true"]{background:#ddc899;color:#193030;border-color:#ddc899}
.hsg-stops button:hover,.hsg-layers button:hover,.hsg-note button:hover{background:#34514c;color:#fff4d1}
.hsg-layers{width:fit-content;gap:3px;border-radius:8px;padding:3px;border:1px solid var(--hsg-line)}
.hsg-layers button{border:0;font-size:.86rem;padding:6px 10px}
.hsg-note{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:12px;border-top:1px solid var(--hsg-line);padding-top:11px;color:#d9dfd4;font-size:.92rem}
.hsg-note button{flex-shrink:0;background:#2b4944;color:#f4e4bd}
.hsg-note span>b{font-weight:650;color:var(--hsg-cream)}
@media(max-width:560px){.hsg-stage canvas{height:clamp(300px,46vh,420px)}.hsg-below{padding:13px}.hsg-actions{right:8px;bottom:8px}.hsg-actions button{width:37px;height:39px}.hsg-top{left:9px;right:9px;top:9px}.hsg-note{align-items:flex-start;flex-wrap:wrap}.hsg-stops button{padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.hsg button{transition:none}}
