@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Poppins:wght@400;600;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: #ffb6d5;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

#brightnessLayer {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.25s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 122, 195, 0.45), rgba(106, 90, 255, 0.35));
  z-index: -2;
}

.menu-card {
  width: min(760px, 95vw);
  padding: 34px 26px;
  border-radius: 34px;
  text-align: center;
  background: rgba(255, 140, 205, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 25px 70px rgba(83, 0, 71, 0.35);
  backdrop-filter: blur(14px);
  animation: popIn 0.8s ease both;
}

@keyframes popIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.mini-title {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff1fb;
}

h1 {
  font-family: 'Chewy', cursive;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 5px 0 #ff65b7, 0 0 25px rgba(255, 255, 255, 0.8);
  margin: 8px 0 10px;
}

.subtitle {
  font-size: 1.08rem;
  margin-bottom: 22px;
  color: #fff6fc;
}

.controls,
.levels {
  display: grid;
  gap: 12px;
}

.controls {
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}

button,
select {
  font-family: 'Poppins', sans-serif;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 800;
}

button {
  cursor: pointer;
  color: #9b1b68;
  background: linear-gradient(180deg, #fff, #ffe1f3);
  box-shadow: 0 8px 0 #ff78bd, 0 14px 24px rgba(71, 0, 59, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 3px 0 #ff78bd, 0 8px 16px rgba(71, 0, 59, 0.18);
}

.setting-box,
.playlist-box {
  margin: 16px auto;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.22);
}

.setting-box label,
.playlist-box h2 {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #fff;
}

#brightnessSlider {
  width: min(420px, 90%);
  accent-color: #ff5ab3;
}

select {
  width: min(380px, 90%);
  color: #9b1b68;
  background: #fff5fb;
  margin-bottom: 10px;
}

#nowPlaying {
  font-size: 0.92rem;
  color: #fff7fc;
}

.levels {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
}

.levels button {
  padding: 15px 8px;
}

.hint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #fff5fb;
}

.heart {
  position: fixed;
  top: -30px;
  font-size: 22px;
  animation: fall linear forwards;
  z-index: 1;
  pointer-events: none;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .controls,
  .levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-card {
    padding: 28px 18px;
  }
}

.main-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:18px 0;}
.big-play{min-width:190px;font-size:20px;padding:16px 28px;}
.levels{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;margin-top:15px;}
@media (min-width:700px){.levels{grid-template-columns:repeat(5,1fr);}}


/* PATCHED: readable text + corner music controls */
.note,.note-text,.dialogue,.message,.factPaper h2,.pinkFactPaper h2,.letterBox,.box,h1,h2,p{ text-shadow:1.5px 1.5px 3px rgba(0,0,0,.85),-1px -1px 2px rgba(0,0,0,.65);}
#musicCornerPlayer{position:fixed;right:12px;bottom:12px;z-index:999999;display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:rgba(20,10,20,.62);color:white;backdrop-filter:blur(8px);box-shadow:0 8px 25px rgba(0,0,0,.35);font-family:Arial,sans-serif;font-size:12px;max-width:210px;}
#musicCornerPlayer button{margin:0!important;padding:6px 8px!important;border-radius:999px!important;font-size:13px!important;line-height:1!important;min-width:auto!important;}
#musicCornerPlayer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95px;display:inline-block;}
@media(max-width:600px){#musicCornerPlayer{right:8px;bottom:8px;font-size:11px;max-width:175px}#musicCornerPlayer span{max-width:70px}}

/* NETLIFY FIX: crisp readable text */
h1,h2,h3,p,button,select,.box,.letterBox,.terminal,.factPaper,.pinkFactPaper,.note,.message,.dialogue{text-shadow:none!important;} 
