/* jocul Modulului 7: Bass swap. Timeline pe bare, două benzi pentru deck-uri, comenzi mari jos */
.g7-grid{display:grid;gap:10px;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "side" "pad"}
.g7-head{grid-area:head;display:grid;gap:8px;align-content:start}
.g7-stage{grid-area:stage;display:grid;gap:6px;min-width:0;align-content:start}
.g7-side{grid-area:side;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.g7-pad{grid-area:pad;display:grid;gap:10px;justify-items:center}
@media (min-width:860px){
  .g7-grid{grid-template-columns:minmax(0,1fr) minmax(290px,340px);grid-template-areas:"stage head" "pad side";grid-template-rows:auto 1fr;gap:14px 22px}
  .g7[data-phase=result] .g7-grid{grid-template-areas:"stage head" "stage side"}
  .g7-side{flex-direction:column;align-items:stretch;justify-content:flex-start}
  }
.g7[data-phase=result] .g7-pad{display:none}

.g7-dots{display:flex;align-items:center;gap:6px}
.g7-dot{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.2);font-size:.78rem;font-weight:800;color:var(--muted);background:transparent}
.g7-dot.done{border-color:var(--okc);color:var(--okc)}
.g7-dot.on{background:#fff;color:#0c0b13;border-color:#fff}
.g7-dot:disabled{opacity:.35;cursor:default}
.g7-dl{font-size:.72rem;color:var(--muted);margin-left:2px}
.g7-task h2{margin:4px 0 2px}
.g7-intro{font-size:.93rem;line-height:1.45}

.g7-recipe{list-style:none;display:grid;gap:5px;margin:0;padding:0;counter-reset:st}
.g7-recipe li{position:relative;background:#16151f;border:1px solid transparent;border-radius:10px;padding:6px 10px 6px 30px;font-size:.88rem;line-height:1.35;color:rgba(255,255,255,.82);transition:border-color .2s,background .2s,color .2s;counter-increment:st}
.g7-recipe li::before{content:counter(st);position:absolute;left:9px;top:6px;font-weight:800;color:var(--muted)}
.g7-recipe li b{color:#fff;font-weight:700;margin-right:2px}
.g7-recipe li.on{border-color:var(--warnc);background:rgba(251,191,90,.1)}
.g7-recipe li.on::before{color:var(--warnc)}
.g7-recipe li.done{color:var(--muted)}
.g7-recipe li.done b{color:var(--muted)}
.g7-recipe li.done::before{content:"✓";color:var(--okc)}

.g7-cv{display:block;width:100%;height:190px;border-radius:12px;touch-action:manipulation}
/* waveform-urile celor două piese, stivuite: Feel It sus, Pleasure jos */
.g7-waves{display:grid;gap:4px}
.g7-wv{display:block;width:100%;height:84px;border-radius:12px;background:#08080c}
.g7-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;font-size:.82rem;color:var(--muted);min-height:26px}
.g7-chip{font-weight:700;border-radius:100px;padding:2px 10px}
.g7-chip:empty{display:none}
.g7-chip.fi{background:rgba(59,130,246,.18);color:#93c5fd}
.g7-chip.pl{background:rgba(168,85,247,.2);color:#d8b4fe}
.g7-chip.bad{background:rgba(255,93,108,.18);color:var(--badc);animation:g7Pulse .7s ease-in-out infinite alternate}
@keyframes g7Pulse{to{background:rgba(255,93,108,.38)}}
.g7-leg{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.g7-leg i{display:inline-block;width:12px;height:8px;border-radius:2px;margin-left:6px}
.g7-leg i:first-child{margin-left:0}
.g7-leg i.ok{background:var(--okc)}.g7-leg i.bad{background:var(--badc)}.g7-leg i.sw{width:10px;height:10px;border-radius:50%;background:var(--okc)}

.g7-coach{font-size:.95rem;line-height:1.4;min-height:2.6em;flex:1 1 200px;color:rgba(255,255,255,.88)}
.g7-coach.game-res{flex-basis:100%}
.g7-coach.game-res p{margin-top:4px;font-size:.9rem}
.g7-coach .g7-learn{color:var(--muted)}
.g7-cn{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--warnc);color:#0c0b13;font-weight:900;margin-right:4px}
.g7-now{color:var(--warnc)}
.g7-warn{color:var(--warnc)}
.g7-row{display:flex;flex-wrap:wrap;gap:8px}
.g7-side .btn{flex:1 1 auto}
.g7-go{min-width:160px}

.g7-mx{display:flex;justify-content:center;gap:clamp(16px,6vw,48px);width:100%}
.g7-ch{display:grid;justify-items:center;align-content:start;gap:4px;background:#16151f;border-radius:14px;padding:8px 12px 10px;border-top:3px solid var(--c);flex:0 1 150px}
.g7-d1{--c:var(--fi)}.g7-d2{--c:var(--pl)}
.g7-lbl{font-size:.82rem;font-weight:800}
.g7-lbl small{font-weight:600;color:var(--c);margin-left:4px;font-size:.78rem}
.g7-lv{font-size:.74rem;color:var(--muted);min-height:1.2em;font-variant-numeric:tabular-nums}
.g7-lv[data-v="1"]{color:var(--warnc)}.g7-lv[data-v="2"]{text-decoration:line-through}
.g7-fc{height:180px}
.g7-fc.ctl-fader{min-height:0}
.g7-ch .ctl-fk::after{background:var(--c)}
.g7-ch .ctl-kd{background:var(--c)}.g7-ch .ctl-kc.mid .ctl-kd{background:#fff}
.g7-tr{display:flex;gap:10px;width:100%;max-width:420px}
.g7-tr button{border:0;color:#fff;font:inherit;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .08s,background .15s}
.g7-cue{flex:1 1 40%;min-height:56px;border-radius:16px;background:#2a2640;font-size:1rem;font-weight:900;display:grid;place-items:center;line-height:1.1}
.g7-cue small{display:block;font-size:.66rem;font-weight:600;color:var(--muted)}
.g7-play{flex:1 1 60%;min-height:56px;border-radius:16px;background:var(--warnc);color:#0c0b13!important;font-size:1.05rem;font-weight:900}
.g7-play kbd{border-color:#0c0b13}
.g7-tr button:active{transform:scale(.96)}
.g7-tr button:disabled{opacity:.4;cursor:default}
.g7-play.done{background:#2a2640;color:var(--okc)!important}
.g7-chip.wait{background:rgba(251,191,90,.16);color:var(--warnc)}

.g7-end{display:grid;gap:12px;justify-items:start;padding:10px 4px}
.g7-end h2{font-size:clamp(1.6rem,4vw,2.3rem)}
.g7-end p{max-width:54ch}

@media (max-width:859px){
  .g7{padding:12px;border-radius:18px}
  .g7-grid{gap:8px}
  .g7-head{gap:6px}
  .g7-dot{width:30px;height:30px;font-size:.72rem}
  .g7-task h2{margin:2px 0 0}
  .g7-intro{font-size:.86rem}
  .g7[data-phase=play] .g7-intro{display:none}
  .g7-recipe{gap:3px}
  .g7-recipe li{font-size:.8rem;padding:4px 8px 4px 26px}
  .g7-recipe li::before{top:4px;left:8px}
  .g7-cv{height:140px}
  .g7-wv{height:72px;border-radius:10px}
  .g7-coach{font-size:.88rem;min-height:2.4em}
  .g7-ch{padding:6px 8px 8px}
  .g7-fc{height:170px}
  .g7-mx{gap:12px}
}
@media (prefers-reduced-motion:reduce){
  .g7-chip.bad{animation:none}
  .g7-b,.g7-s,.g7-swap,.g7-recipe li,.g7-meter i{transition:none}
}
/* telefon: rețeta pas cu pas spune deja ce ai de făcut, intro-ul lung ar împinge comenzile sub ecran */
@media (max-width:859px){.g7-intro{display:none}}

/* telefon, în timpul jocului: doar ce trebuie. Timeline-ul, rețeta și titlul apar după tranziție */
@media (max-width:859px){
  .g7[data-phase=play] .g7-cv,.g7[data-phase=play] .g7-recipe,.g7[data-phase=play] .g7-task,.g7[data-phase=play] .g7-dots{display:none}
  .g7[data-phase=play] .g7-coach{min-height:2.6em}
  .g7[data-phase=play] .g7-side{flex-wrap:nowrap}
  .g7[data-phase=play] .g7-wv{height:64px}
}
/* landscape pe telefon: waveform-urile și mixerul alăturat */
@media (orientation:landscape) and (max-height:520px) and (max-width:1000px){
  .g7-grid{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"stage pad" "side pad";align-items:start}
  .g7-head,.g7-cv{display:none}
  .g7[data-phase=result] .g7-head,.g7[data-phase=result] .g7-cv{display:grid}
  .g7[data-phase=result] .g7-grid{grid-template-areas:"head stage" "side stage"}
  .g7-fc{height:130px}
  .g7-mx{gap:8px}
  .g7-wv{height:56px!important}
}
