.hs-page { width: var(--page); margin: 0 auto; }
.hs-page [hidden] { display: none !important; }
.hs-page.page-columns, .hs-page .page-columns, #hs-explorer.page-columns { display: block !important; }
.hs-page .page-columns > * { grid-column: auto !important; }
.hs-heading { max-width: 820px; margin: 3rem 0 1.5rem; }
.hs-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.hs-heading h1 { color: var(--paper); font-size: clamp(2.1rem, 8vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.hs-heading h1 em { color: var(--gold); }
.hs-heading > p:last-child { color: var(--soft); font-size: 1.05rem; max-width: 64ch; }
.hs-loading { color: var(--soft); }
.hs-page button { font-family: var(--sans); }
.hs-page button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.hs-panel { position: relative; margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 1.9rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.hs-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.hs-panel .eyebrow { margin-bottom: .3rem; }
.hs-panel h2 { margin: 0 0 .5rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; margin-bottom: .8rem; }
.hs-transport { display: flex; flex-wrap: wrap; gap: .5rem; }
.hs-play { padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.hs-play[aria-pressed="true"] { background: #c2185b; color: #fff; }
.hs-btn { padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .88rem; cursor: pointer; }
.hs-btn:disabled { opacity: .4; cursor: default; }

.hs-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.hs-way { display: grid; gap: .2rem; justify-items: start; padding: .85rem 1rem; border: 1.5px solid var(--paper-line); border-radius: 12px; background: #fffaf0; color: var(--ink); font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; }
.hs-way b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-bottom: .2rem; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: .78rem; }
.hs-way small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.hs-way.is-star { border-color: var(--gold); }
.hs-way[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hs-way[aria-pressed="true"] small { color: var(--soft); }
.hs-way[aria-pressed="true"] b { background: var(--gold); color: var(--ink); }

/* Two tape reels: their spin shows the tape speed */
.hs-dial { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; margin: 1.2rem 0 .6rem; padding: 1rem 1.2rem; border-radius: 12px; background: linear-gradient(180deg, #2a2236, #1a1422); }
.hs-reel { width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(#8a7a9c 0 20deg, #3b3048 20deg 120deg, #8a7a9c 120deg 140deg, #3b3048 140deg 240deg, #8a7a9c 240deg 260deg, #3b3048 260deg); box-shadow: inset 0 0 0 5px #6b5a7e, inset 0 0 0 30px #2a2236; animation: hs-spin 2.4s linear infinite paused; }
.hs-tape { height: 3px; margin: 0 -2px; background: #6b4a2f; }
.hs-speed { grid-column: 1 / -1; margin: .7rem 0 0; color: #cfc4dc; font-family: var(--mono); font-size: .7rem; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.hs-speed span { display: none; }
.hs-dial[data-speed=""] .hs-speed span[data-s="full"], .hs-dial[data-speed="full"] [data-s="full"], .hs-dial[data-speed="half"] [data-s="half"], .hs-dial[data-speed="double"] [data-s="double"] { display: inline; }
.hs-dial[data-speed="half"] .hs-reel { animation-duration: 4.8s; }
.hs-dial.is-playing .hs-reel { animation-play-state: running; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hs-reel { animation: none; } }
.hs-progress { position: relative; display: block; height: 6px; border-radius: 3px; background: #ece2d1; overflow: hidden; }
.hs-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--pink-ink); }
.hs-status { margin: 1rem 0 0; padding: .55rem .8rem; border-radius: 8px; background: #fdf0cf; font-size: .88rem; }
.hs-fine { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }

.hs-keys { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 1rem 0 0; padding: 10px; border-radius: 12px; background: #1a1422; }
.hs-key { height: 130px; padding: 0 0 .6rem; border: 0; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #f3ece0, #fffdf8 70%, #e9e0d0); color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; align-items: end; justify-content: center; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.hs-key.is-hit { background: var(--gold); color: var(--ink); }

.hs-story > p:not(.eyebrow) { max-width: 80ch; }
.hs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.2rem; }
.hs-step { padding: 1rem 1.1rem; border: 1px solid var(--paper-line); border-radius: 10px; background: #fffaf0; font-size: .9rem; }
.hs-step h3 { margin: .4rem 0 .3rem; color: var(--ink); font-size: 1.15rem; }
.hs-step p { margin: 0; }
.hs-n { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: .72rem; }
.hs-story a { color: var(--pink-ink); }
.hs-method { max-width: 90ch; margin: 1.75rem 0; color: var(--soft); font-size: .82rem; }
.hs-method a { color: var(--gold); }
.hs-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }

@media (max-width: 1000px) { .hs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hs-ways { grid-template-columns: minmax(0, 1fr); } .hs-key { height: 110px; font-size: .68rem; } .hs-keys { gap: 2px; padding: 6px; } }
@media (max-width: 560px) { .hs-steps { grid-template-columns: minmax(0, 1fr); } .hs-keys { grid-template-columns: repeat(6, minmax(0, 1fr)); } .hs-key { height: 84px; border-radius: 8px; } }
