*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#0a0a0a;color:#fff;font-family:"Bebas Neue","Trebuchet MS",sans-serif;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}
img,canvas{image-rendering:pixelated;image-rendering:crisp-edges}
#app{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
#hud{width:100%;display:flex;align-items:center;gap:10px;padding:6px 12px;background:linear-gradient(#2a1d1c,#1b1416);border-bottom:3px solid #000;flex-wrap:wrap;justify-content:center}
.logo{position:relative;display:flex;flex-direction:column;line-height:.9;font-weight:900;text-transform:uppercase;padding-right:26px}
.logo .l1{font-size:24px;color:#ffd23a;text-shadow:2px 2px 0 #b3261e,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,3px 3px 0 #000;letter-spacing:1px}
.logo .l2{font-size:13px;color:#ffe9a8;text-shadow:2px 2px 0 #b3261e,1px 1px 0 #000}
.logo img{position:absolute;right:0;top:2px;height:30px}
.panel{background:#120d0e;border:2px solid #5a4338;border-radius:6px;color:#fff}
.stats{display:flex;align-items:center}
.cell{display:flex;align-items:center;gap:6px;padding:4px 12px;border-right:2px solid #3a2c27}
.cell:last-child{border:0}
.cell img{height:28px}.cell img.face{height:34px;background:#2e2422;border:2px solid #6b5246;border-radius:4px}
small{display:block;font-size:10px;letter-spacing:1px;color:#e9d7b9;font-weight:700}
b{font-size:17px;color:#ffc93a;font-family:"Courier New",monospace;font-weight:900;letter-spacing:1px}
#lives img{height:16px;margin-right:2px}
.nivel{padding:4px 12px;text-align:left}.nivel b{font-size:13px;font-family:inherit}
#pauseBtn{width:40px;height:40px;font-size:16px;cursor:pointer;color:#fff}
#stage{position:relative;flex:1;width:100%;display:flex;align-items:center;justify-content:center;min-height:0}
canvas{display:block;background:#000;border:3px solid #000}
#overlay{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:rgba(15,8,8,.55)}
#overlay.show{display:flex}
.box{background:#1f1514ee;border:4px solid #ffc93a;outline:4px solid #000;border-radius:8px;padding:18px 24px;text-align:center;max-width:92%;box-shadow:0 6px 0 #000}
.box h1{font-size:34px;color:#ffd23a;text-shadow:3px 3px 0 #b3261e,5px 5px 0 #000;line-height:1}
.box h2{font-size:16px;color:#ffe9a8;margin:4px 0 10px;text-shadow:2px 2px 0 #b3261e}
.box p{margin:6px 0;font-size:14px;color:#f3e6d0}
.box .btn{display:inline-block;margin-top:10px;padding:10px 20px;background:#e0461f;border:3px solid #000;border-radius:6px;color:#fff;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 4px 0 #000}
.box img{height:70px;margin:4px}
#touch{display:none;width:100%;justify-content:space-between;padding:10px 18px 22px}
#touch .pad{display:flex;gap:14px}
#touch button{background:none;border:0;width:74px;height:74px;opacity:.92}
#touch button img{width:100%;height:100%}
#touch button.on{transform:scale(.92);opacity:1}
body.touch #touch{display:flex}
@media (max-width:820px){
 #hud{gap:6px;padding:6px}.logo .l1{font-size:18px}.logo .l2{font-size:10px}.logo img{height:22px}
 .cell{padding:3px 6px}.cell img{height:22px}.cell img.face{height:26px}b{font-size:13px}small{font-size:8px}
 .nivel{padding:3px 6px}.nivel b{font-size:11px}#pauseBtn{width:34px;height:34px}
 .box h1{font-size:24px}.box p{font-size:12px}
}

/* ===== Estética del sitio El Harrys ===== */
#hud{background:#0a0a0a;border-bottom:2px solid #ff2d95;box-shadow:0 0 14px rgba(255,45,149,.55)}
.logo{font-family:"Permanent Marker",cursive;font-weight:400}
.logo .l1{color:#ffe600;text-shadow:0 0 6px #ff2d95,2px 2px 0 #ff2d95,3px 3px 0 #000}
.logo .l2{font-family:"Bebas Neue",sans-serif;font-size:15px;letter-spacing:2px;color:#00e5ff;text-shadow:0 0 6px #00e5ff}
.panel{background:#0a0a0a;border:2px solid #00e5ff;border-radius:10px;box-shadow:0 0 8px rgba(0,229,255,.45)}
.cell{border-right:2px solid rgba(255,45,149,.5)}
small{font-family:"Bebas Neue",sans-serif;font-size:13px;font-weight:400;letter-spacing:2px;color:#ff2d95}
b{font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:22px;letter-spacing:2px;color:#ffe600;text-shadow:0 0 6px rgba(255,230,0,.6)}
.nivel b{font-size:16px;color:#00e5ff;text-shadow:0 0 6px #00e5ff}
.cell img.face{background:#141414;border:2px solid #ff2d95}
#pauseBtn{color:#ffe600}
.volver{font-family:"Bebas Neue",sans-serif;font-size:17px;letter-spacing:1px;color:#00e5ff;text-decoration:none;padding:8px 12px;white-space:nowrap}
.volver:hover{color:#0a0a0a;background:#00e5ff}
canvas{border:3px solid #ff2d95;box-shadow:0 0 18px rgba(255,45,149,.6)}
#overlay{background:rgba(10,10,10,.72)}
.box{background:#0a0a0aee;border:3px solid #ff2d95;outline:none;border-radius:16px;box-shadow:0 0 22px #ff2d95,inset 0 0 18px rgba(0,229,255,.25);font-family:"Bebas Neue",sans-serif}
.box h1{font-family:"Permanent Marker",cursive;font-weight:400;color:#ffe600;text-shadow:0 0 10px #ff2d95,3px 3px 0 #ff2d95}
.box h2{font-family:"Bebas Neue",sans-serif;font-size:22px;letter-spacing:3px;color:#00e5ff;text-shadow:0 0 8px #00e5ff}
.box p{font-family:"Bebas Neue",sans-serif;font-size:19px;letter-spacing:1px;color:#f5f5dc}
.box p b{font-size:19px}
.box .btn{font-family:"Permanent Marker",cursive;font-weight:400;font-size:20px;background:#ffe600;color:#0a0a0a;border:3px solid #00e5ff;border-radius:12px;box-shadow:0 0 14px #00e5ff}
.box .btn:hover{background:#ff2d95;color:#fff}
.box .btn.sec{background:#0a0a0a;color:#00e5ff;margin-left:8px;text-decoration:none}
.box img.brand{height:auto;width:min(300px,60vw);display:block;margin:0 auto 4px;image-rendering:auto}
@media (max-width:820px){.volver{font-size:13px;padding:6px 8px}b{font-size:16px}small{font-size:10px}.box p{font-size:15px}.box img.brand{width:min(200px,50vw)}}

#muteBtn{width:40px;height:40px;font-size:18px;cursor:pointer;line-height:1}
#muteBtn.off{border-color:#ff2d95;box-shadow:0 0 8px rgba(255,45,149,.6)}
.song{display:block;margin:10px 0 2px;font-family:"Bebas Neue",sans-serif;font-size:19px;letter-spacing:1px;color:#00e5ff}
.song select{font-family:"Bebas Neue",sans-serif;font-size:18px;letter-spacing:1px;background:#0a0a0a;color:#ffe600;border:2px solid #ff2d95;border-radius:8px;padding:4px 8px;margin-left:6px}
@media (max-width:820px){#muteBtn{width:34px;height:34px;font-size:15px}.song,.song select{font-size:15px}}

/* iOS: sin menú de imagen, selección, arrastre ni zoom */
html,body,#app,#touch,#touch *,canvas,#hud,#overlay img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}
#app,#touch,#touch *,canvas{touch-action:none}
img{-webkit-user-drag:none;pointer-events:none}
.box .btn img,.box select,.box a{pointer-events:auto}
#touch .tbtn{background:transparent center/contain no-repeat;image-rendering:pixelated;border:0;padding:0;cursor:pointer;outline:none}
