/* 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, #626262, #a9a9a9); color: #ffffff; border: none;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(98, 98, 98, .5);}

#ach-fab {
  position: absolute; left: 12px; bottom: 416px; z-index: 6;
  background: linear-gradient(90deg, #5f5f5f, #d3d3d3); color: #1a1a1a; border: none;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 0 0 16px rgba(211, 211, 211, .45);}


/* Kepala seksi Mobilku di panel Karakter */
.char-section {
  font-size: 16px; margin: 16px 0 4px; color: #d3d3d3;
  border-top: 1px dashed rgba(211, 211, 211, .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(7, 7, 7, .72);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 18px 10px;}

.fitur-overlay.hidden { display: none;} 
.fitur-box {
  background: #1a1a1a; color: #eeeeee; border: 1px solid rgba(211, 211, 211, .35);
  border-radius: 16px; padding: 16px; width: min(430px, 94vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  /* Panel menyesuaikan isi (21:51): tinggi maks proporsional layar,
     isi panjang digulir DI DALAM panel. */
  max-height: 85vh; overflow-y: auto;}

/* Panel menu gabungan: ramping mengikuti konten terlebar */
.menu-box { width: fit-content; max-width: min(94vw, 470px);} 
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px; margin: 4px 0 6px;}

.menu-item {
  background: rgba(255, 255, 255, .06); color: #eeeeee; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
  padding: 10px 6px; font-size: 12.5px; line-height: 1.25;}

.menu-item:hover { border-color: #d3d3d3; background: rgba(211, 211, 211, .12);} 
.fitur-h2 { font-size: 12.5px; color: #d3d3d3; margin: 12px 0 6px;} 
#settings-volume { flex: 1; min-width: 110px; accent-color: #d3d3d3;} 
/* Monokrom paksa (K-MONO run-17): warna bawaan browser TIDAK terlihat
   pindai CSSOM — tautan tanpa warna = biru UA, slider tanpa
   accent-color = aksen biru UA. Kartu pengaturan wajib abu semua. */
#menu-webaddr { color: #ffffff;} 
.fitur-box input[type="range"] { accent-color: #d3d3d3;} 
#settings-zoom-val { min-width: 52px; text-align: center; font-weight: 700;} 
.fitur-head { display: flex; justify-content: space-between; align-items: center;} 
.fitur-title { font-size: 19px; font-weight: 900; color: #d3d3d3;} 
.fitur-head button {
  background: rgba(255, 255, 255, .08); color: #ffffff; 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: #d9d9d9; 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: #eeeeee;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; cursor: pointer;
  font-size: 14px;}

.radio-station.on {
  border-color: #d3d3d3; background: rgba(211, 211, 211, .13);
  box-shadow: 0 0 0 1px #d3d3d3 inset;}

.radio-station .rs-genre { font-size: 11.5px; opacity: .75; display: block;} 
.radio-station .rs-live { color: #cfcfcf; 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: #d3d3d3;} 
.fitur-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;} 
#radio-now { font-size: 13px; color: #cfcfcf; 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: #cfcfcf; 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, #9b9b9b, #d3d3d3);
  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(207, 207, 207, .18); color: #cfcfcf;
  border-color: rgba(207, 207, 207, .5);}

.streak-cell.today { outline: 2px solid #d3d3d3;} 
.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 #d3d3d3; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(4, 4, 4, .55), 0 0 22px rgba(211, 211, 211, .8);
  pointer-events: none; transition: all .35s ease;
  animation: tutPulse 1.1s ease-in-out infinite;}

@keyframes tutPulse {
  0%, 100% { outline: 0 solid rgba(211, 211, 211, .0);} 
  50% { outline: 5px solid rgba(211, 211, 211, .35);}} 

#tut-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 108px; width: min(400px, 92vw); pointer-events: auto;
  background: #1a1a1a; color: #eeeeee; border: 1px solid rgba(211, 211, 211, .5);
  border-radius: 15px; padding: 14px 15px; box-shadow: 0 14px 44px rgba(0, 0, 0, .6);}

#tut-step { font-size: 11.5px; color: #d9d9d9; letter-spacing: .4px;} 
#tut-title { font-size: 16.5px; font-weight: 900; color: #d3d3d3; 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: #d3d3d3;} 

/* --- Panel ski pantai (paket ski): pilihan varian + warna --- */
.ski-variants { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px;} 
.ski-var {
  flex: 1; min-width: 96px; padding: 9px 6px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); color: #f4f4f4; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .16); cursor: pointer;}

.ski-var.on { background: #343434; border-color: #aaaaaa; color: #e7e7e7;} 
.ski-colors { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px;} 
.ski-color {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .35); padding: 0;}

.ski-color.on { border-color: #d3d3d3; box-shadow: 0 0 0 2px rgba(211, 211, 211, .55); 
}