/* LEONIDA — fitur pemain 17 Nov 2026: radio + suara, prestasi +
   streak, tutorial, jam game. Berkas terpisah supaya style.css
   inti tidak perlu diubah. */

/* --- FAB baru (tangga kiri, sesudah market-fab 328) --- */
#radio-fab {
  position: absolute; left: 12px; bottom: 372px; z-index: 6;
  background: linear-gradient(90deg, #0e7a6d, #2ec5ff); color: #fff; border: none;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(14, 122, 109, .5);
}
#ach-fab {
  position: absolute; left: 12px; bottom: 416px; z-index: 6;
  background: linear-gradient(90deg, #8a5a12, #ffd166); color: #241a02; border: none;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(255, 209, 102, .45);
}

/* Kepala seksi Mobilku di panel Karakter */
.char-section {
  font-size: 16px; margin: 16px 0 4px; color: #ffd166;
  border-top: 1px dashed rgba(255, 209, 102, .35); padding-top: 12px;
}
#stage.menu-folded #radio-fab,
#stage.menu-folded #ach-fab { display: none !important; }

/* --- Overlay generik fitur (pola char-overlay) --- */
.fitur-overlay {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(8, 6, 20, .72);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 18px 10px;
}
.fitur-overlay.hidden { display: none; }
.fitur-box {
  background: #1b1830; color: #f2eee4; border: 1px solid rgba(255, 209, 102, .35);
  border-radius: 16px; padding: 16px; width: min(430px, 94vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.fitur-head { display: flex; justify-content: space-between; align-items: center; }
.fitur-title { font-size: 19px; font-weight: 900; color: #ffd166; }
.fitur-head button {
  background: rgba(255, 255, 255, .08); color: #fff; border: none;
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px;
}
.fitur-sub { font-size: 12.5px; opacity: .85; margin: 6px 0 12px; }
.fitur-h { font-size: 14px; color: #7bf1ff; margin: 14px 0 7px; }

/* --- Radio --- */
.radio-station {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; margin-bottom: 7px; padding: 10px 12px;
  background: rgba(255, 255, 255, .05); color: #f2eee4;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; cursor: pointer;
  font-size: 14px;
}
.radio-station.on {
  border-color: #ffd166; background: rgba(255, 209, 102, .13);
  box-shadow: 0 0 0 1px #ffd166 inset;
}
.radio-station .rs-genre { font-size: 11.5px; opacity: .75; display: block; }
.radio-station .rs-live { color: #69f0ae; font-weight: 700; font-size: 12px; }
.fitur-vol { display: flex; align-items: center; gap: 9px; margin: 7px 0; font-size: 13px; }
.fitur-vol input[type="range"] { flex: 1; accent-color: #ffd166; }
.fitur-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
#radio-now { font-size: 13px; color: #69f0ae; min-height: 17px; }

/* --- Prestasi / pencapaian --- */
.ach-item { margin-bottom: 10px; }
.ach-head { display: flex; justify-content: space-between; font-size: 13.5px; }
.ach-head .ach-done { color: #69f0ae; font-weight: 700; }
.ach-bar {
  height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .1);
  overflow: hidden; margin-top: 4px;
}
.ach-bar > div {
  height: 100%; background: linear-gradient(90deg, #c9973f, #ffd166);
  border-radius: 6px;
}
.ach-hint { font-size: 11.5px; opacity: .7; margin-top: 2px; }
.streak-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px;
}
.streak-cell {
  aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 10.5px;
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .07);
}
.streak-cell.on {
  background: rgba(105, 240, 174, .18); color: #69f0ae;
  border-color: rgba(105, 240, 174, .5);
}
.streak-cell.today { outline: 2px solid #ffd166; }
.streak-cell .sc-d { font-size: 13px; font-weight: 800; }

/* --- Tutorial terpandu --- */
#tut-overlay {
  position: absolute; inset: 0; z-index: 60; pointer-events: none;
}
#tut-overlay.hidden { display: none; }
#tut-hl {
  position: absolute; border: 3px solid #ffd166; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(5, 3, 16, .55), 0 0 22px rgba(255, 209, 102, .8);
  pointer-events: none; transition: all .35s ease;
  animation: tutPulse 1.1s ease-in-out infinite;
}
@keyframes tutPulse {
  0%, 100% { outline: 0 solid rgba(255, 209, 102, .0); }
  50% { outline: 5px solid rgba(255, 209, 102, .35); }
}
#tut-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 108px; width: min(400px, 92vw); pointer-events: auto;
  background: #1b1830; color: #f2eee4; border: 1px solid rgba(255, 209, 102, .5);
  border-radius: 15px; padding: 14px 15px; box-shadow: 0 14px 44px rgba(0, 0, 0, .6);
}
#tut-step { font-size: 11.5px; color: #7bf1ff; letter-spacing: .4px; }
#tut-title { font-size: 16.5px; font-weight: 900; color: #ffd166; margin: 3px 0 5px; }
#tut-text { font-size: 13.5px; line-height: 1.45; }
#tut-actions { display: flex; gap: 8px; margin-top: 11px; }
#tut-actions .grow { flex: 1; }

/* --- Jam game di HUD --- */
#hud-clock { color: #ffd166; }
