
/* HAME 0.3: play first; the music controls only appear below an opened story. */
.hame-toggle{margin-left:auto;border:1px solid #9adcb7;background:#1c5547;color:#e8fff1;box-shadow:inset 0 0 0 1px #c1ffd32b,0 0 14px #84edaa21;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:850;letter-spacing:.025em;white-space:nowrap;transition:background .16s,color .16s}
.hame-toggle:hover{background:#276957}.hame-toggle[aria-pressed="false"]{background:#233135;color:#acbfba;border-color:#50736b;box-shadow:none}
.hame-panel{margin:24px 0 20px;padding:16px 18px;border:1px solid #4b736a;border-radius:14px;background:#0e252b;color:#d9f4e6;font:12px system-ui,sans-serif;box-shadow:0 7px 26px #0002}
.hame-panel-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-bottom:1px solid #47645b;padding-bottom:12px;margin-bottom:13px}
.hame-panel-head strong{font-size:13px;letter-spacing:.10em}.hame-panel-head span{color:#a8c7b8;font-size:11px}
.hame-options{display:flex;flex-wrap:wrap;gap:13px;align-items:flex-end}.hame-options label{display:flex;flex-direction:column;gap:7px;flex:1 1 170px;color:#a7cabe;font-size:11px;font-weight:700}
.hame-options select{width:100%;min-height:39px;background:#173d37;color:#ecfff5;border:1px solid #4b796b;border-radius:8px;padding:7px 9px;font:12px system-ui,sans-serif;cursor:pointer}
.hame-help{font:11px/1.5 system-ui,sans-serif;color:#a6c7b7;margin:10px 0 0}
.hame-listen{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:12px;margin-top:12px;border-top:1px solid #47645b}.hame-listen>span{color:#adc8be;margin-right:6px}
.hame-listen button{border:1px solid #739b89;border-radius:8px;background:#183d35;color:#eafff2;padding:9px 14px;font:700 12px system-ui,sans-serif}.hame-listen button:hover{background:#215345}.hame-listen button[aria-pressed="true"]{background:#2c6553;border-color:#a0efc2}
#hame-stop{background:#332d2a;border-color:#806a5d;color:#eee2d8}
@media(max-width:610px){.hame-toggle{margin-left:0;padding:7px 10px;font-size:11px}.hame-panel{padding:13px 12px;margin:17px 0}.hame-options{gap:9px}.hame-options label{flex:1 1 100%}.hame-listen>span{width:100%}}


/* HAME 0.4: Father Time's musical sibling. No overlay on the letter field, no visual timer. */
.hame-time-group{display:flex;gap:10px;align-items:center;margin-left:auto;flex-shrink:0}
.hame-time-group .hame-toggle{margin-left:0}
.hame-clock{display:flex;align-items:center;gap:6px;white-space:nowrap;min-width:103px;padding:3px 5px;border:1px solid #42685a;border-radius:9px;background:#15332f;color:#e4efd9;font-variant-numeric:tabular-nums;user-select:none}
.hame-clock svg{flex:none;display:block;overflow:visible}
.clock-ring{fill:#102923;stroke:#7fa58d;stroke-width:1.5}
.clock-marks{fill:none;stroke:#c3d7bd;stroke-width:1.5;stroke-linecap:round;opacity:.8}
#hame-clock-hand{stroke:#f2d894;fill:#f2d894;transform-origin:24px 24px;transition:transform .12s linear}
.hame-clock-data{display:flex;align-items:baseline;gap:3px;min-width:39px}
.hame-clock-data strong{font-size:18px;line-height:1;color:#f0d9a5;min-width:16px;text-align:right}
.hame-clock-data small{font-size:9px;color:#b4cabc;font-weight:800;letter-spacing:.03em}
.hame-clock:not(.is-playing) #hame-clock-hand{transition:none;opacity:.58}
.hame-clock:not(.is-playing) .hame-clock-data strong{opacity:.65}
@media(max-width:830px){.toolbar{flex-wrap:wrap}.hame-time-group{margin-left:0}.prefs{margin-left:auto}}
@media(max-width:610px){.hame-time-group{order:1;margin-left:auto;gap:6px}.stats{order:0}.prefs{order:2;margin-left:auto}.hame-clock{min-width:84px;gap:3px;padding:2px}.hame-clock svg{width:35px;height:35px}.hame-clock-data strong{font-size:16px}.hame-time-group .hame-toggle{padding:6px 9px}.toolbar{gap:8px}}
@media(prefers-reduced-motion:reduce){#hame-clock-hand{transition:none}}


/* HAME 0.5 GOLDEN BAR CLOCK · two hands, the same musical tick authority. */
.clock-beat-ring{fill:none;stroke:#7d9f8c;stroke-width:.7;opacity:.48}
.clock-beat-dot{fill:#9fc7b1;opacity:.82}
.clock-beat-dot.is-first{fill:#f2d894;opacity:1}
#hame-clock-beat-hand{stroke:#9ee7c1;fill:#9ee7c1;transform-origin:24px 24px;transition:transform .12s linear}
#hame-clock-hand{transition:transform .12s linear}
.hame-clock:not(.is-playing) #hame-clock-beat-hand{transition:none;opacity:.55}
@media(prefers-reduced-motion:reduce){#hame-clock-beat-hand{transition:none}}


/* FUSION 0.7.2: layout-only sidecar; no changes to GOLD cursor, camera or viewport. */
#game .toolbar {flex-wrap:wrap;}
#game .hame-time-group{margin-left:auto;}
#game .hame-panel{position:static;clear:both;max-width:100%;box-sizing:border-box;}
#game .hame-clock {flex-shrink:0;}
@media(max-width:850px){#game .hame-time-group{order:2;width:100%;justify-content:flex-end;margin-left:0;}
#game .prefs{order:1;margin-left:auto}#game .stats{order:0;}}
@media(max-width:610px){#game .hame-time-group{order:2;width:100%;justify-content:space-between;gap:6px;}
#game .prefs{order:1;}#game .hame-clock{min-width:80px;} }

