/* 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}
.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:8px;grid-template-columns:1fr 1fr;grid-template-areas:"d1 d2" "sw sw"}
@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-pad{grid-template-columns:1fr 150px 1fr;grid-template-areas:"d1 sw d2"}
}
.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:240px;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-deck{background:#16151f;border-radius:14px;padding:8px 10px;display:grid;gap:6px;border-top:3px solid var(--c)}
.g7-d1{grid-area:d1;--c:var(--fi)}.g7-d2{grid-area: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-ctl{display:grid;grid-template-columns:52px 1fr 52px;gap:6px;align-items:center}
.g7-b,.g7-s,.g7-swap{border:0;color:#fff;font:inherit;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:transform .08s,background .15s}
.g7-b{min-height:48px;border-radius:12px;background:#25233a;font-size:1rem;font-weight:800}
.g7-b:active,.g7-s:active,.g7-swap:active{transform:scale(.95)}
.g7-b:hover,.g7-s:hover{background:#302d48}
.g7-meter{display:flex;gap:3px;height:12px}
.g7-meter i{flex:1;border-radius:3px;background:rgba(255,255,255,.1);transition:background .12s}
.g7-meter i.on{background:var(--c)}
.g7-low{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted)}
.g7-low span{flex:1;min-width:0}
.g7-low b{color:#fff}
.g7-low b[data-v="1"]{color:var(--warnc)}
.g7-low b[data-v="2"]{color:var(--muted);text-decoration:line-through}
.g7-s{min-height:44px;min-width:44px;border-radius:10px;background:#1f1d2c;font-size:.9rem;font-weight:800}
.g7-swap{grid-area:sw;min-height:56px;border-radius:16px;background:var(--warnc);color:#0c0b13;font-size:1.05rem;font-weight:900;letter-spacing:.01em}
.g7-swap:hover{background:#fcc96f}
.g7-swap kbd{border-color:#0c0b13}

.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-pad{gap:6px}
  .g7-deck{padding:6px 8px;gap:4px}
  .g7-ctl{grid-template-columns:48px 1fr 48px;gap:5px}
  .g7-low{font-size:.72rem;gap:4px}
}
@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}}
