/* Harp - interface style. CC0. */
* { box-sizing: border-box; }
html, body { margin: 0; background: #17120d; color: #e9dcc6; font: 15px/1.4 Georgia, "Iowan Old Style", serif; }
header { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #3a2f22; background: #1d1610; }
.logo { font-size: 26px; letter-spacing: 2px; color: #e8c27a; }
.sub { color: #a08c6e; }
.spacer { flex: 1; }
.pill { font: 13px/1 system-ui, sans-serif; color: #a08c6e; display: flex; align-items: center; gap: 6px; }
.pill b { color: #e9dcc6; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5a4a38; display: inline-block; }
.dot.on { background: #9fd28a; }
button { font: 13px system-ui, sans-serif; color: #e9dcc6; background: #2a2118; border: 1px solid #4a3c2c; border-radius: 6px; padding: 7px 11px; cursor: pointer; }
button:hover { border-color: #8a7050; }
button.on { background: #6b4e26; border-color: #e8c27a; color: #fff6e0; }
button.big { padding: 9px 16px; font-size: 14px; background: #6b4e26; border-color: #e8c27a; }
button.big.on { background: #2f4a2a; border-color: #9fd28a; }
main { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.card { background: #201913; border: 1px solid #3a2f22; border-radius: 10px; padding: 12px 14px; }
.card h3 { margin: 2px 0 10px; font: 12px system-ui, sans-serif; color: #a08c6e; text-transform: uppercase; letter-spacing: 1px; }
.lbl { font: 12px system-ui, sans-serif; color: #a08c6e; text-transform: uppercase; letter-spacing: 1px; margin: 2px 0 6px; display: flex; gap: 10px; }
.lbl span { text-transform: none; letter-spacing: 0; color: #7d6a50; }
.top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
#harpPic { width: 240px; height: 250px; display: block; }
.notebig { display: flex; align-items: baseline; gap: 14px; }
.notebig span { font-size: 52px; color: #f3e2bf; min-width: 2.4em; }
.notebig small { font: 15px system-ui, sans-serif; color: #c9a36a; min-width: 6em; }
#tuner { width: 100%; height: 34px; display: block; margin: 4px 0 10px; }
.meters { display: grid; gap: 6px; font: 12px system-ui, sans-serif; color: #a08c6e; }
.meters > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; }
.meter { height: 8px; background: #2c231a; border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a6a3a, #e8c27a); }
#spec { width: 100%; height: 120px; display: block; }
#scope { width: 100%; height: 70px; display: block; }
#pad { position: relative; height: 210px; border-radius: 8px; border: 1px dashed #5a4a38; background: linear-gradient(0deg, #201913, #3d2f1e); display: flex; align-items: center; justify-content: center; text-align: center; font: 12px system-ui, sans-serif; color: #7d6a50; touch-action: none; cursor: ns-resize; user-select: none; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.btns.small { margin: 10px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(36px, 1fr) 76px; gap: 8px; align-items: center; font: 13px system-ui, sans-serif; color: #cdbb9c; margin: 5px 0; }
.row b { white-space: nowrap; font-weight: 500; color: #e8c27a; text-align: right; font-size: 12px; }
input[type=range] { width: 100%; accent-color: #c9a36a; }
.hint { font: 12px system-ui, sans-serif; color: #7d6a50; margin: 6px 0 0; }
footer { padding: 14px 20px 20px; display: grid; grid-template-columns: 200px auto minmax(0, 1fr); gap: 14px; align-items: end; }
#keys { position: relative; height: 130px; touch-action: none; user-select: none; }
.key { position: absolute; top: 0; height: 100%; background: #eadcc2; border: 1px solid #5a4a38; border-radius: 0 0 6px 6px; }
.key i { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 11px system-ui, sans-serif; color: #6b5a44; }
.key.black { height: 60%; background: #2a2118; z-index: 2; border-color: #120e0a; }
.key.down { background: #e8c27a; }
.key.black.down { background: #8a6a3a; }
#flash { position: fixed; left: 50%; bottom: 170px; transform: translateX(-50%); background: #6b4e26; color: #fff6e0; padding: 8px 14px; border-radius: 8px; font: 13px system-ui, sans-serif; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
#flash.show { opacity: 1; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } }
#padDot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #e8c27a; box-shadow: 0 0 10px #e8c27a; pointer-events: none; }
.padlbl { font: 12px system-ui, sans-serif; color: #a08c6e; margin-top: 6px; text-align: center; }
#pad span { pointer-events: none; padding: 0 8px; }
.key.cstr { background: #e9c2a8; }
.key.fstr { background: #b9c7d6; }

/* start splash: browsers need a click before they make sound */
#splash { position: fixed; inset: 0; background: rgba(15, 11, 8, 0.88); display: flex; align-items: center; justify-content: center; z-index: 20; }
#splash[hidden] { display: none; }
#splash .card { text-align: center; padding: 30px 44px; }
#splash h1 { margin: 0 0 6px; font: 34px Georgia, "Iowan Old Style", serif; letter-spacing: 2px; color: #e8c27a; font-weight: normal; }
#splash p { margin: 0 0 18px; color: #a08c6e; font-family: Georgia, "Iowan Old Style", serif; }
#splash p.small { margin: 14px 0 0; font: 12px system-ui, sans-serif; color: #7d6a50; }
#splash button { font-size: 16px; padding: 10px 28px; }

/* ---- design pass (matches Whistles) ---- */
.notebig span.idle { color: #6b5a44; }
.tunerbare { padding: 6px 4px; }
.graphs { padding: 12px 4px; min-width: 0; }
header { position: relative; padding-right: 64px; }
button.help { position: absolute; top: 0; right: 0; width: 44px; height: 100%; padding: 0; border-radius: 0; border-width: 0 0 0 1px; border-color: #3a2f22; background: #241b13; font-size: 17px; font-weight: 600; color: #c9a36a; }
button.help:hover { background: #2f2418; color: #e8c27a; }
.seg { display: inline-flex; border: 1px solid #4a3c2c; border-radius: 6px; overflow: hidden; }
.seg button { white-space: nowrap; border: 0; border-radius: 0; margin: 0; padding: 6px 10px; background: #2a2118; }
.seg button + button { border-left: 1px solid #4a3c2c; }
.seg button.on { background: #6b4e26; color: #fff6e0; }
.row.seg-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(36px, 1fr) 76px; margin: 5px 0 8px; }
.row.seg-row .seg { grid-column: 2 / 4; justify-self: start; }
.row.seg-row .seg button { padding: 4px 10px; }
/* computer key letters on the strings */
.key b.kc { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font: 600 12px system-ui, sans-serif; color: #8a6a3a; pointer-events: none; }
.key.black b.kc { bottom: 8px; color: #c9a36a; }
/* mod wheel, left of the strings */
.wheels { display: flex; justify-content: flex-end; gap: 12px; height: 150px; }
.wheel { position: relative; width: 36px; height: 128px; border-radius: 8px; border: 1px solid #4a3c2c; cursor: ns-resize; touch-action: none;
  background: repeating-linear-gradient(0deg, #2a2118 0, #2a2118 5px, #231b14 5px, #231b14 7px); box-shadow: inset 0 8px 10px #120e0a, inset 0 -8px 10px #120e0a; }
.wheel i { position: absolute; left: 3px; right: 3px; height: 12%; border-radius: 3px; background: linear-gradient(#e8c27a, #8a6a3a); pointer-events: none; }
.wheel span { position: absolute; top: 100%; left: -10px; right: -10px; margin-top: 6px; text-align: center; font: 11px system-ui, sans-serif; color: #8a7658; }
/* credits */
.tail { margin: 0 2px; align-self: end; font: 11px/1.6 system-ui, sans-serif; color: #5a4a38; }
.tail a { color: inherit; text-decoration: none; }
.tail a:hover { color: #8a7658; }
/* help */
#help { position: fixed; inset: 0; background: rgba(15, 11, 8, 0.8); display: flex; align-items: center; justify-content: center; z-index: 15; }
#help[hidden] { display: none; }
#help .card { position: relative; width: min(1180px, 94vw); max-height: 92vh; overflow: auto; padding: 22px 30px 26px; }
#help .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; }
#help .tools { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
#help h2 { margin: 0 0 6px; font-weight: normal; color: #e8c27a; font-size: 22px; }
#help h4 { margin: 16px 0 4px; font: 600 12px system-ui, sans-serif; color: #a08c6e; text-transform: uppercase; letter-spacing: 1px; }
#help p { margin: 0; font: 14px/1.5 system-ui, sans-serif; color: #cdbb9c; }
#help p.sp { margin-bottom: 8px; }
#help .close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; padding: 0; }
#flash { z-index: 30; }
@media (max-width: 900px) { #help .cols { grid-template-columns: 1fr; } footer { grid-template-columns: auto minmax(0, 1fr); } footer .tail { display: none; } }
