* { box-sizing: border-box; }
/* 1rem = 16px en 1920 de ancho; crece con la pantalla (32px en un televisor 4k) */
html { font-size: clamp(14px, .8334vw, 64px); }
html, body { margin: 0; height: 100%; background: #0a0b10; color: #dfe3f5; font-family: system-ui, sans-serif; overflow: hidden; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .625rem 1.25rem; background: linear-gradient(rgba(10,11,16,.85), rgba(10,11,16,0)); transition: opacity .4s; opacity: .35; }
header:hover { opacity: 1; }
header.hide, header.hide:hover { opacity: 0; pointer-events: none; }
.controls { margin-left: auto; }
.controls { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; font-size: .85rem; }
button, select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: .375rem; padding: .45rem .875rem; font-size: .9rem; cursor: pointer; backdrop-filter: blur(6px); }
select option { color: #000; }
button:hover { background: rgba(255,255,255,.25); }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; vertical-align: middle; accent-color: #ff9ad0; cursor: pointer; }
label { cursor: pointer; }
input[type=range] { vertical-align: middle; accent-color: #ff9ad0; width: 8rem; height: 1.2rem; }
footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2; padding: .6rem 1.25rem; background: linear-gradient(transparent, rgba(10,11,16,.95)); transition: opacity .4s; font-size: .75rem; }
footer.hide { opacity: 0; pointer-events: none; }
.progress { display: flex; align-items: center; gap: .75rem; max-width: 64rem; margin: auto; font-variant-numeric: tabular-nums; }
.progress input { flex: 1; width: auto; cursor: pointer; }
.work-info, .credits { max-width: 64rem; margin: .3rem auto 0; color: #b9bfd2; }
.credits { font-size: .68rem; }
.credits summary { cursor: pointer; }
.credits p { margin: .4rem 0; }
.credits a { color: #ffd0e7; }
@media (max-width: 700px) { header { padding: .5rem; } .controls { gap: .45rem; font-size: .75rem; } .controls select { max-width: 14rem; } .controls input[type=range] { width: 5rem; } footer { padding: .5rem; } }
