* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #2a141e 0%, #0e0c12 70%);
  font-family: 'Fredoka', sans-serif;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
canvas { display: block; position: fixed; inset: 0; cursor: pointer; z-index: 1; }

#hud {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 18px;
}
#scoreWrap { text-align: center; }
#scoreLabel {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; letter-spacing: 4px;
  color: #ff8c1a; font-size: 15px; opacity: 0.85;
}
#score {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 78px; line-height: 0.95;
  color: #fff8f0;
  text-shadow: 0 0 24px rgba(255,120,0,0.5);
  transform-origin: center; transition: none;
}
#best { color: #c98a5a; font-size: 14px; font-weight: 500; margin-top: 2px; letter-spacing: 1px; }

#combo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 26px; color: #ff3b30;
  margin-top: 10px; min-height: 30px;
  text-shadow: 0 0 12px rgba(255,59,48,0.6);
}
#combo.flash { animation: pop 0.4s ease-out; }
@keyframes pop {
  0% { transform: scale(0.4) rotate(-6deg); opacity: 0; }
  50% { transform: scale(1.35) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

#muteBtn {
  position: fixed; top: 16px; right: 16px; z-index: 4;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,140,26,0.4);
  color: #fff; font-size: 22px; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; line-height: 1;
  backdrop-filter: blur(4px);
}
#muteBtn:active { transform: scale(0.9); }

#infoBtn {
  position: fixed; top: 16px; left: 16px; z-index: 4;
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,140,26,0.4);
  color: #fff; font-size: 22px; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; line-height: 1;
  backdrop-filter: blur(4px);
}
#infoBtn:active { transform: scale(0.9); }

#infoModal {
  position: fixed; inset: 0; z-index: 10;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,6,12,0.72); backdrop-filter: blur(6px);
  padding: 20px;
}
#infoModal.show { display: flex; animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#infoCard {
  position: relative; max-width: 420px; width: 100%;
  background: linear-gradient(160deg, #241019 0%, #150e18 100%);
  border: 3px solid #ff7a00;
  border-radius: 22px; padding: 26px 24px 24px;
  box-shadow: 0 0 40px rgba(255,120,0,0.35), inset 0 0 30px rgba(0,0,0,0.4);
  animation: popIn 0.35s cubic-bezier(.2,1.3,.4,1);
  color: #fff8f0;
}
@keyframes popIn {
  0% { transform: scale(0.6) rotate(-3deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
#infoCard h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 34px; margin-bottom: 12px; color: #ff8c1a;
  text-shadow: 0 0 18px rgba(255,120,0,0.4);
}
#infoCard p { font-size: 15px; line-height: 1.45; margin-bottom: 12px; opacity: 0.92; }
#infoCard ul { list-style: none; margin: 0 0 14px; padding: 0; }
#infoCard li { font-size: 14px; line-height: 1.5; margin-bottom: 9px; opacity: 0.9; }
#infoCard .hl { color: #ff3b30; font-weight: 700; }
#infoCard b { color: #ffd23f; }
#infoCard .tiny { font-size: 12px; opacity: 0.55; margin-bottom: 16px; }
#infoCard .playBtn {
  display: block; text-align: center; text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 17px; color: #150e18; background: #ff8c1a;
  padding: 13px; border-radius: 14px; letter-spacing: 0.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 #b85e00;
}
#infoCard .playBtn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #b85e00; }
#infoCard .playBtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b85e00; }
#infoClose {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  font-size: 18px; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; line-height: 1;
}
#infoClose:active { transform: scale(0.9); }

#hint {
  position: fixed; bottom: 22%; left: 0; right: 0; z-index: 3;
  text-align: center; color: rgba(255,240,220,0.6);
  font-size: 18px; font-weight: 500; pointer-events: none;
  transition: opacity 0.5s ease;
}
#hint.gone { opacity: 0; }

#milestone {
  position: fixed; top: 42%; left: 0; right: 0; z-index: 4;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 30px; color: #ffd23f; pointer-events: none;
  opacity: 0; text-shadow: 0 0 20px rgba(0,0,0,0.6);
}
#milestone.show { animation: milestone 2s ease-out forwards; }
@keyframes milestone {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  15% { opacity: 1; transform: scale(1.1) translateY(0); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9) translateY(-20px); }
}

#breathMsg {
  position: fixed; bottom: 26%; left: 0; right: 0; z-index: 4;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 24px; color: #9fd3ff; pointer-events: none;
  opacity: 0; text-shadow: 0 0 16px rgba(120,180,255,0.4);
}
#breathMsg.show { animation: breathe 1.6s ease-in-out forwards; }
@keyframes breathe {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  25% { opacity: 1; transform: scale(1.05) translateY(0); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95) translateY(-8px); }
}

footer {
  position: fixed; bottom: 10px; left: 0; right: 0; z-index: 3;
  text-align: center; pointer-events: auto;
}
footer a {
  color: rgba(255,255,255,0.35); font-size: 12px;
  text-decoration: none; letter-spacing: 1px;
}
footer a:hover { color: rgba(255,140,26,0.8); }

@media (max-width: 500px) {
  #score { font-size: 60px; }
  #milestone { font-size: 22px; }
}
</parameter>
</invoke>