/* The home page hero gyroscope (js/hero-toy.js): section view and its controls. Loaded after content.css. */
.hero-fig { --toy-gap: #ff5a1f; }                      /* the gap between two pieces in the section view (read by the script too) */
.hero-fig .toy-hint { top: auto; bottom: var(--s3); }
.toy-cut .toy-hint { opacity: 0; }
.toy-tools { position: absolute; right: var(--s3); top: var(--s3); left: var(--s3); display: none; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); pointer-events: none; }
.toy-live .toy-tools { display: flex; }
.toy-tools .btn { position: static; display: inline-flex; background: var(--surface); pointer-events: auto; }
.toy-tools .btn[hidden] { display: none; }
.toy-tools .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.toy-legend { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); margin: 0; display: none; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--ink); pointer-events: none; }
.toy-cut .toy-legend { display: flex; }
.toy-legend i { flex: none; width: 18px; height: 6px; background: var(--toy-gap); }
.toy-legend span { background: color-mix(in oklch, var(--surface) 82%, transparent); padding: 2px 4px; }
@media (max-width: 480px) { .toy-tools .btn { padding: .5rem .7rem .4rem; min-height: 34px; font-size: var(--t-xs); } .toy-legend { font-size: var(--t-xs); } }
