/* ---------- עמוד ההסבר על הפלייסטיילים (#styles, js/styles-guide.js) ---------- */
/* השורה העליונה, כפתור החזרה והמטבעות מוגדרים ב-gallery.css. צבע לכל קבוצה (--c): בעיטות כתום, מסירות תכלת,
   כדרור ומהירות ירוק, הגנה אדום, שוערים סגול */
#styles {
  justify-content: flex-start;
  align-items: stretch;
  gap: 2vh;
  padding: 3vh 2.5vw 2.5vh;
}
#styles.entering { animation: home-in .8s var(--ease-out) both; }
#styles.active .gal-top > * { animation: gal-drop .7s var(--ease-out) backwards; }
#styles.active .gal-top > :nth-child(2) { animation-delay: .1s; }
#styles.active .gal-top > :nth-child(3) { animation-delay: .2s; }

.psg-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1c4fa8 transparent;
  width: min(92vw, 190vh);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 3vh;
  padding: 1vh .6vw 3vh;
  font-family: var(--ar-font);
  color: #fff;
}

/* איך זה עובד */
.psg-rules {
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
  padding: 2.4vh 2.2vw;
  background: linear-gradient(170deg, rgba(22, 48, 104, .64), rgba(5, 12, 27, .92) 62%);
  box-shadow: inset 0 0 0 4px #1c4fa8, inset 0 0 0 7px rgba(120, 180, 255, .14);
  clip-path: var(--notch);
}
.psg-title { --u: max(1.8px, .36vh); display: flex; }
.psg-list { margin: 0; padding: 0 2.2vw 0 0; display: flex; flex-direction: column; gap: .8vh; font: 600 clamp(13px, 2.2vh, 22px) / 1.45 var(--ar-font); color: rgba(255, 255, 255, .88); }
.psg-list li::marker { color: #ffd54a; }
.psg-legend { display: flex; flex-wrap: wrap; gap: .8vh .8vw; }

/* קבוצה */
.psg-sec { --c: 255, 213, 74; display: flex; flex-direction: column; gap: 1.6vh; }
.cat-shot { --c: 255, 154, 60; }
.cat-pass { --c: 89, 208, 255; }
.cat-move { --c: 61, 255, 176; }
.cat-def  { --c: 255, 106, 85; }
.cat-gk   { --c: 192, 140, 255; }
.psg-cat { --u: max(2px, .4vh); display: flex; align-items: center; gap: 1vw; }
.psg-cat::after { content: ""; flex: 1; height: .4vh; min-height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--c), .7)); }
.psg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 44vh), 1fr)); gap: 2vh 1.4vw; }

/* פלייסטייל */
.psg-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  padding: 2vh 1.6vw 2.2vh;
  background: linear-gradient(165deg, rgba(var(--c), .16), rgba(6, 14, 30, .94) 46%);
  box-shadow: inset 0 0 0 3px rgba(var(--c), .55), inset 0 0 0 6px rgba(255, 255, 255, .05);
  clip-path: var(--notch);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
#styles.active .psg-item { animation: stand-in .7s var(--ease-out) backwards; }
.psg-item.nav-focus { outline: none; animation: none; transform: scale(1.02); box-shadow: inset 0 0 0 3px #ffd54a, inset 0 0 0 6px rgba(255, 213, 74, .18); }
.psg-head { display: flex; align-items: center; gap: 1.2vw; }
.psg-icon { width: 8vh; height: auto; flex: none; image-rendering: pixelated; filter: drop-shadow(0 0 1.2vh rgba(var(--c), .55)); }
.psg-names { display: flex; flex-direction: column; align-items: flex-start; gap: .7vh; min-width: 0; }
.psg-name { font: 400 clamp(11px, 2.1vh, 22px) "Pixel", monospace; color: #fff; text-shadow: 0 0 1.2vh rgba(var(--c), .7); white-space: nowrap; }
.psg-rate { font: 800 clamp(11px, 1.7vh, 17px) var(--ar-font); color: #0a0f14; background: rgb(var(--c)); padding: .25vh .8vw; }
.psg-row { display: grid; grid-template-columns: 6.4vh 1fr; gap: 1vw; align-items: baseline; }
.psg-k { font: 800 clamp(11px, 1.8vh, 18px) var(--ar-font); color: rgb(var(--c)); }
.psg-v { font: 500 clamp(12px, 2vh, 20px) / 1.4 var(--ar-font); color: rgba(255, 255, 255, .9); }
.psg-who { display: flex; flex-direction: column; gap: .8vh; margin-top: .4vh; padding-top: 1.2vh; border-top: 1px solid rgba(255, 255, 255, .1); }
.psg-chips { display: flex; flex-wrap: wrap; gap: .7vh .6vw; }
.psg-chip {
  display: inline-flex;
  align-items: center;
  gap: .5vw;
  padding: .35vh .7vw;
  font: 700 clamp(10px, 1.6vh, 16px) var(--ar-wide);
  color: #fff;
  background: rgba(255, 213, 74, .12);
  box-shadow: inset 0 0 0 2px rgba(255, 213, 74, .6);
}
.psg-chip .psg-rt { font-weight: 900; color: #ffd54a; }
.psg-chip.legend { background: rgba(255, 246, 222, .14); box-shadow: inset 0 0 0 2px #fff3d0; }
.psg-chip.legend .psg-rt { color: #fff3d0; }
.psg-chip.hero { background: rgba(255, 138, 58, .14); box-shadow: inset 0 0 0 2px #ff8a3a; }
.psg-chip.hero .psg-rt { color: #ffab5a; }
.psg-chip.promo { background: rgba(176, 130, 255, .16); box-shadow: inset 0 0 0 2px #b082ff; }
.psg-chip.promo .psg-rt { color: #c9a8ff; }
.psg-more, .psg-none { font: 700 clamp(10px, 1.6vh, 16px) var(--ar-font); color: rgba(255, 255, 255, .6); align-self: center; }

/* בהגדרות: הלוח של הפלייסטיילים מוצג ראשון (ב-DOM הוא אחרון, ראו index.html) */
.set-panel.set-guide { order: -1; }
html.mobile .set-panel.set-guide { order: -1; }   /* גובר על html.mobile .set-wide (order 4) */

/* ---------- טלפון ---------- */
html.mobile #styles { padding: 8px var(--gut) 8px; gap: 8px; }
html.mobile .psg-body { width: 100%; align-self: stretch; gap: 16px; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.mobile .psg-rules { padding: 14px 14px; gap: 10px; }
html.mobile .psg-title { --u: 1.4px; }
html.mobile .psg-list { padding-right: 18px; font-size: 14px; gap: 6px; }
html.mobile .psg-cat { --u: 1.4px; gap: 8px; }
html.mobile .psg-cat::after { height: 2px; }
html.mobile .psg-grid { grid-template-columns: 1fr; gap: 10px; }
html.mobile .psg-item { padding: 14px 12px 14px; gap: 9px; }
html.mobile .psg-head { gap: 10px; }
html.mobile .psg-icon { width: 54px; }
html.mobile .psg-name { font-size: 13px; }
html.mobile .psg-rate { font-size: 12px; padding: 2px 8px; }
html.mobile .psg-row { grid-template-columns: 52px 1fr; gap: 8px; }
html.mobile .psg-k { font-size: 13px; }
html.mobile .psg-v { font-size: 14px; }
html.mobile .psg-chips { gap: 6px; }
html.mobile .psg-chip { gap: 5px; padding: 3px 7px; font-size: 12px; }
html.mobile .psg-more, html.mobile .psg-none { font-size: 12px; }
