/* Zaplud — gabarit commun des idle games (voir /idle/shell.js) :
   scène en haut, bande d'automates, puis rail de catégories à gauche et liste à droite.
   Ordre des catégories, identique dans tous les jeux :
   Production · Améliorations · (spécial au jeu) · Prestige · Boutique · | · Automates · Succès.
   S'appuie sur les variables du jeu (--bg, --text, --muted, --mut2, --accent, --ok, --font, --sl, --sr, --sb). */

/* ---- bande d'automates : interrupteurs toujours visibles sous la scène ---- */
.autos { flex: none; display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--sr)) 8px calc(-1 * var(--sl)); padding: 0 var(--sr) 0 var(--sl); }
.autos::-webkit-scrollbar { display: none; }
.autos.on { display: flex; }
.autos button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 5px 0 9px; border-radius: 99px; background: #ffffff0a; border: 1px solid #ffffff14;
  color: var(--muted); font: 700 11.5px/1 var(--font); white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.autos button svg { width: 15px; height: 15px; flex: none; }
.autos button .k { flex: none; position: relative; width: 28px; height: 18px; border-radius: 99px; background: #ffffff24; transition: background-color .2s; }
.autos button .k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.autos button.on { color: var(--text); background: #34d39914; border-color: #34d39950; }
.autos button.on svg { color: var(--ok); }
.autos button.on .k { background: var(--ok); }
.autos button.on .k::after { transform: translateX(10px); }
.autos button:active { transform: scale(.96); }

/* ---- rail à gauche + panneau à droite ---- */
.shell { flex: 1; min-height: 0; display: flex; gap: 8px; margin-left: calc(6px - var(--sl)); }
.rail { flex: none; width: 62px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-width: none; padding: 0 0 calc(var(--sb) + 8px); }
.rail::-webkit-scrollbar { display: none; }
.rail button { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 7px; border-radius: 13px;
  color: var(--mut2); font: 700 10px/1.1 var(--font); transition: background-color .15s, color .15s; }
.rail button svg { width: 22px; height: 22px; flex: none; }
.rail button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail button.sel { background: #ffffff12; color: var(--text); }
.rail button.sel svg { color: var(--accent); }
.rail button.sel::before { content: ""; position: absolute; left: -6px; top: 13px; bottom: 13px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.rail button:active { transform: scale(.95); }
.rail button i { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff;
  font: 800 10px/17px var(--font); font-style: normal; text-align: center; display: none; box-shadow: 0 0 0 2px var(--bg); }
.rail button i.on { display: block; }
.rail .sep { flex: none; height: 1px; margin: 4px 12px; background: #ffffff14; }
.rail button.fav { margin-top: auto; }
.rail button.fav.on { color: #fcd34d; }
.rail button.fav.on svg path { fill: currentColor; }

.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pane > .bar2 { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin: 0 0 8px; }
.pane .sech { min-width: 0; }
.pane .sech b { display: block; font: 800 16px/1.15 var(--font); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane .sech .sub { display: block; margin-top: 2px; color: var(--muted); font: 600 11.5px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane .amt button { min-width: 34px; min-height: 28px; font-size: 11.5px; }
.pane #list { flex: 1; margin: 0 calc(-1 * var(--sr)) 0 0; padding: 0 var(--sr) calc(var(--sb) + 12px) 0; }

/* lignes un peu plus compactes : le rail prend ~70 px de large */
.pane .row { gap: 10px; padding: 9px 8px; }
.pane .row .ico { width: 38px; height: 38px; border-radius: 11px; }
.pane .row .ico svg { width: 20px; height: 20px; }
.pane .row .nm b { font-size: 13.5px; }
.pane .row .nm small { font-size: 11.5px; }
.pane .buy { min-width: 70px; min-height: 40px; padding: 0 8px; font-size: 13px; }
.pane .bcard { padding: 16px 12px; }

/* écrans bas (petits téléphones) : rail resserré, puis sans libellés */
@media (max-height: 720px) {
  .rail { gap: 2px; }
  .rail button { padding: 6px 2px 5px; gap: 3px; }
  .rail button svg { width: 20px; height: 20px; }
  .rail button.sel::before { top: 10px; bottom: 10px; }
  .rail .sep { margin: 3px 12px; }
}
@media (max-height: 600px) {
  .rail button { padding: 8px 2px; }
  .rail button span { display: none; }
}
