/* v1.17 Szatnia gracza (js/szatnia-gracza.js), v1.18: styl „Podziemie” z PROMPTY-GRAFIKA-29
   Scena 16:9. Strefy w procentach kadru zmierzone na assets/szatnia/styl-a/szatnia_tlo.webp (1920×1080); środki wnęk nagród
   i gniazd medali są w LR_STYLES (js/szatnia-gracza.js). Przy nowym tle
   wystarczy poprawić zmienne poniżej. Klasa .art = jest tło z pliku, meble z CSS (.lr-fx) się chowają. */
.lr-stage {
  --fg-x: 36.75%; --fg-y: 21%; --fg-w: 26.5%;              /* postać 1024×1536: podeszwy (96% obrazka) na środku blatu podestu, y ≈ 958 px */
  --cb-x: 3.02%; --cb-y: 27.04%; --cb-w: 30.05%; --cb-h: 52.41%; /* gablota (neonowa rama 58–635 × 292–858 px) */
  --sh0: 67.3%; --sh1: 35.5%; --sh2: 4.6%;                 /* blaty 3 półek od dołu gabloty (y 44.2%, 60.8%, 77% kadru) */
  --bd-x: 66.5%; --bd-y: 62%; --bd-w: 30.5%; --bd-h: 17%;  /* rama medali kariery (tylko zastępcza z CSS) */
  --aw-w: 7.29cqw; --md-w: 4.22cqw;                            /* statuetka 2:3 (140 px), medal (81 px) */
  --acc2: #ff2bd6; --acc3: #22d3ee;
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 14px; isolation: isolate;
  container-type: inline-size; background: #07080b; border: 1px solid var(--line); user-select: none;
}
.lr-wrap { border-radius: 14px; }
.lr-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.lr-stage.art .lr-fx { display: none; }

/* --- zastępcza szatnia z CSS (ten sam układ co tło) --- */
.lr-fx, .lr-fx i { position: absolute; display: block; }
.lr-fx { inset: 0; z-index: 0; }
.lr-wall { inset: 0; background:
  radial-gradient(40% 50% at 50% 35%, rgba(255, 255, 255, .06), transparent 70%),
  radial-gradient(30% 40% at 18% 45%, rgba(255, 43, 214, .07), transparent 70%),
  radial-gradient(30% 40% at 82% 40%, rgba(34, 211, 238, .07), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 12.5%),
  linear-gradient(180deg, #1a1b1f 0%, #121317 70%, #08090c 100%); }
.lr-rail { left: 16.5%; right: 16.5%; top: 8.6%; height: .6%; border-radius: 9px; background: #c6ff00; box-shadow: 0 0 1.2cqw rgba(198, 255, 0, .6); }
.lr-floor { left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(180deg, #0b0c10, #050607); border-top: 1px solid rgba(255, 255, 255, .08); }
.lr-bench { left: 1.5%; right: 1.5%; bottom: 14%; height: 5%; border-radius: .4cqw; background: linear-gradient(180deg, #2a2c31, #141519); }
.lr-frame { border: .25cqw solid #9aa0aa; box-shadow: 0 0 1.4cqw rgba(255, 255, 255, .25); background: #111215; }
.lr-frame.c { left: 4.9%; top: 7.2%; width: 9.7%; aspect-ratio: 1; border-radius: 50%; } .lr-frame.f { left: 83%; top: 8.3%; width: 13.1%; height: 14.4%; }
.lr-cab { left: var(--cb-x); top: var(--cb-y); width: var(--cb-w); height: var(--cb-h); background: linear-gradient(180deg, rgba(28, 30, 36, .95), rgba(16, 17, 21, .95)); border: .25cqw solid #ff2bd6; box-shadow: 0 0 1.6cqw rgba(255, 43, 214, .35); }
.lr-glass { inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .06) 0 18%, transparent 18% 40%, rgba(255, 255, 255, .03) 40% 46%, transparent 46%); }
.lr-sh { left: 3%; right: 3%; height: 1.6%; background: linear-gradient(180deg, rgba(220, 240, 255, .5), rgba(120, 140, 160, .2)); }
.lr-sh.a { bottom: var(--sh0); } .lr-sh.b { bottom: var(--sh1); }
.lr-boardbg { left: var(--bd-x); top: var(--bd-y); width: var(--bd-w); height: var(--bd-h); background: #141519; border: .25cqw solid #22d3ee; box-shadow: 0 0 1.6cqw rgba(34, 211, 238, .35); }
.lr-achbg { left: calc(var(--x) - 3.4%); width: 6.8%; top: 25.5%; height: 31.5%; background: linear-gradient(180deg, #3a3020, #17130c); border: .2cqw solid #ffc531; box-shadow: inset 0 -4cqw 3cqw rgba(255, 197, 49, .18); } /* wnęki nagród sezonu */
.lr-lockbg { left: 39%; top: 14%; width: 22%; height: 69%; background: linear-gradient(180deg, #24262c, #16171b); border: .35cqw solid #5d626c; box-shadow: inset 0 0 3cqw rgba(0, 0, 0, .8); }
.lr-podium { left: 36%; top: 83%; width: 28%; height: 9%; border-radius: 50%; background: linear-gradient(180deg, #45484f, #1c1d21); box-shadow: 0 .3cqw 0 #c6ff00, 0 0 2cqw rgba(198, 255, 0, .3); }

/* --- poświata pełnego setu na podeście (kolor kraju) --- */
.lr-glow { position: absolute; left: 33%; top: 76%; width: 34%; height: 20%; z-index: 1; pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--nc) 70%, transparent), transparent); mix-blend-mode: screen; transition: opacity .4s; }
.lr-stage.full .lr-glow { opacity: .85; animation: lrFull 3.2s ease-in-out infinite; }
@keyframes lrFull { 50% { opacity: .55; } }

/* --- barwy reprezentacji i klubu --- */
/* flaga w ramce prawego górnego rogu, herb klubu w ramce lewego */
/* herb w neutralnym kole (lewy górny róg), flaga 3:2 w neutralnym panelu (prawy górny) */
.lr-flag { position: absolute; left: 82.45%; top: 6.3%; width: 13.49%; height: 15.93%; z-index: 2; overflow: hidden; box-shadow: inset 0 0 1cqw rgba(0, 0, 0, .45); } /* całe szkło panelu (1583–1842 × 68–240 px) */
.lr-flag .flag { width: 100% !important; height: 100% !important; display: block; object-fit: cover; filter: saturate(1.05) brightness(.95); }
.lr-flag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0 18%, transparent 30% 100%); pointer-events: none; } /* odblask szkła */
.lr-club { position: absolute; left: 6.6%; top: 8.5%; width: 6.77%; height: 12.04%; z-index: 2; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: none; }
.lr-club svg, .lr-club img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: 100% !important; object-fit: contain; filter: drop-shadow(0 .3cqw .5cqw rgba(0, 0, 0, .7)); transition: transform .15s; }
.lr-club small { display: none; }
.lr-club:hover svg, .lr-club:hover img { transform: scale(1.06); }
.lr-plate { position: absolute; left: 44.01%; width: 11.98%; top: 10.19%; height: 4.81%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  background: linear-gradient(180deg, #2b2f37, #15171c); border: .15cqw solid #4a505c; border-radius: .3cqw; }
.lr-stage.art .lr-plate { background: transparent; border-color: transparent; }
.lr-plate b { font-family: var(--display); font-size: 1.45cqw; letter-spacing: .12cqw; color: #1b1d22; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); text-transform: uppercase; max-width: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-stage:not(.art) .lr-plate b { color: #f2f5f8; text-shadow: none; }
.lr-plate small { font-size: .7cqw; font-weight: 700; color: #2a2d33; display: flex; align-items: center; gap: .3cqw; }
.lr-stage:not(.art) .lr-plate small { color: var(--acc); }
.lr-plate small .flag { width: 1cqw !important; height: auto !important; }

/* --- postać na podeście i klikalne części stroju --- */
.lr-fig { position: absolute; left: var(--fg-x); top: var(--fg-y); width: var(--fg-w); aspect-ratio: 2 / 3; z-index: 3; }
.lr-fig::before { content: ''; position: absolute; left: 16%; width: 68%; top: 93.5%; height: 5%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 60%, transparent); } /* cień pod butami na blacie podestu */
.lr-fig .mk { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; transform: none; filter: drop-shadow(0 .6cqw .8cqw rgba(0, 0, 0, .55)); }
.lr-fig .mk-l { transition: filter .15s; }
.lr-hots { position: absolute; inset: 0; }
.lr-hs { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; border-radius: .6cqw; }
.lr-hs.empty:hover, .lr-hs.empty.on { outline: .15cqw dashed rgba(198, 255, 0, .7); background: rgba(198, 255, 0, .08); }
.lr-fig:has(.s-bluza:hover) [data-mkslot="bluza"], .lr-fig[data-sel="bluza"] [data-mkslot="bluza"],
.lr-fig:has(.s-spodenki:hover) [data-mkslot="spodenki"], .lr-fig[data-sel="spodenki"] [data-mkslot="spodenki"],
.lr-fig:has(.s-skarpety:hover) [data-mkslot="skarpety"], .lr-fig[data-sel="skarpety"] [data-mkslot="skarpety"],
.lr-fig:has(.s-ochraniacze:hover) [data-mkslot="ochraniacze"], .lr-fig[data-sel="ochraniacze"] [data-mkslot="ochraniacze"],
.lr-fig:has(.s-buty:hover) [data-mkslot="buty"], .lr-fig[data-sel="buty"] [data-mkslot="buty"],
.lr-fig:has(.s-pilka:hover) [data-mkslot="pilka"], .lr-fig[data-sel="pilka"] [data-mkslot="pilka"],
.lr-fig:has(.s-frotka:hover) [data-mkslot="frotka"], .lr-fig[data-sel="frotka"] [data-mkslot="frotka"],
.lr-fig:has(.s-akcesorium:hover) [data-mkslot="akcesorium"], .lr-fig[data-sel="akcesorium"] [data-mkslot="akcesorium"] {
  filter: drop-shadow(0 0 .35cqw #c6ff00) drop-shadow(0 0 .9cqw var(--pg, #c6ff00)) brightness(1.08); }
.lr-natfull { position: absolute; left: 50%; bottom: 2.2%; transform: translateX(-50%); z-index: 5; white-space: nowrap; font-size: .85cqw; font-weight: 800; letter-spacing: .05cqw; color: #0b0d10;
  background: var(--nc); border-radius: 99px; padding: .25cqw .9cqw; box-shadow: 0 0 1.6cqw var(--nc); display: flex; align-items: center; gap: .4cqw; }
.lr-natfull .flag { width: 1.2cqw !important; height: auto !important; }

/* gablota: 4 puchary na każdej z 3 półek */
.lr-cups { position: absolute; left: var(--cb-x); top: var(--cb-y); width: var(--cb-w); height: var(--cb-h); z-index: 3; }
.lr-cup { position: absolute; left: calc(5% + var(--i) * 23%); width: 21%; bottom: var(--sh0); padding: 0; border: 0; background: none; cursor: pointer; display: flex; justify-content: center; align-items: flex-end; transition: transform .15s; }
.lr-cup.s1 { bottom: var(--sh1); } .lr-cup.s2 { bottom: var(--sh2); }
.lr-cup img { width: 100%; height: auto; max-height: 6.8cqw; object-fit: contain; filter: drop-shadow(0 .5cqw .5cqw rgba(0, 0, 0, .6)); }
.lr-cup.p1 img { filter: drop-shadow(0 0 1cqw rgba(255, 197, 49, .55)) drop-shadow(0 .5cqw .5cqw rgba(0, 0, 0, .6)); }
.lr-cup:hover, .lr-cup.on { transform: translateY(-4%) scale(1.06); }
.lr-cup.off { cursor: default; opacity: .22; filter: grayscale(1) brightness(.6); left: calc(9% + var(--i) * 29%); width: 24%; bottom: var(--sh1); }
.lr-shelf-note, .lr-board-note { position: absolute; left: 0; right: 0; text-align: center; font-size: .85cqw; color: rgba(255, 255, 255, .42); letter-spacing: .05cqw; }
.lr-shelf-note { bottom: calc(var(--sh2) + 8%); }
.lr-more { position: absolute; right: 4%; top: 2%; font-style: normal; font-size: .9cqw; font-weight: 800; color: var(--acc); }

/* medale kariery: każdy w swoim okrągłym gnieździe ramy (środki z LR_STYLES.md), krążek medalu ~42% wysokości obrazka */
.lr-board { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lr-med { position: absolute; left: calc(var(--x) - var(--md-w) / 2); top: calc(var(--y) - var(--md-w) * .42); width: var(--md-w); aspect-ratio: 1; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transition: transform .15s; }
.lr-med .mpic { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .7)); }
.lr-med:hover, .lr-med.on { transform: scale(1.12); }
.lr-med.on .mpic { filter: drop-shadow(0 0 .6cqw #22d3ee) drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .7)); }
.lr-med.off { cursor: default; pointer-events: auto; }
.lr-med.off .mpic { opacity: .16; filter: grayscale(1) brightness(.7); }
.lr-med.off:hover { transform: none; }

/* nagrody sezonu: statuetka stoi na cokole swojej wnęki (cokół na y = LR_STYLES.awY, podstawa statuetki na 93,9% obrazka) */
.lr-aws { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lr-aw { position: absolute; left: calc(var(--x) - var(--aw-w) / 2); top: calc(var(--y) - var(--aw-w) * 1.5 * .939); width: var(--aw-w); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; transition: transform .15s, filter .15s; }
.lr-aw img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .65)); }
.lr-aw small { position: absolute; left: 50%; top: 100%; transform: translate(-50%, .25cqw); white-space: nowrap; font: 800 .7cqw/1 var(--font, inherit); letter-spacing: .03cqw; color: #2a1d05; background: linear-gradient(180deg, #ffe08a, #d9a21f); border-radius: 99px; padding: .2cqw .55cqw; box-shadow: 0 .15cqw .4cqw rgba(0, 0, 0, .5); }
.lr-aw:hover, .lr-aw.on { transform: translateY(-3%) scale(1.04); }
.lr-aw.on img { filter: drop-shadow(0 0 .9cqw rgba(255, 197, 49, .85)) drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .65)); }
.lr-aw.off { cursor: default; }
.lr-aw.off img { opacity: .2; filter: grayscale(1) brightness(.55); }
.lr-aw.off:hover { transform: none; }
.lr-awico img { width: 56px !important; height: 56px !important; object-fit: contain; }
/* przycisk „Cała gablota” na podstawie gabloty */
.lr-allbtn { position: absolute; left: calc(var(--cb-x) + var(--cb-w) / 2); top: calc(var(--cb-y) + var(--cb-h) + 1.6%); transform: translateX(-50%); z-index: 5; border: 0; cursor: pointer; white-space: nowrap;
  font: 800 .85cqw/1 var(--font, inherit); letter-spacing: .04cqw; color: #f2f5f8; background: rgba(12, 13, 17, .85); border-radius: 99px; padding: .45cqw 1cqw;
  box-shadow: inset 0 0 0 .12cqw rgba(255, 43, 214, .75), 0 0 1.2cqw rgba(255, 43, 214, .35); transition: transform .15s, box-shadow .15s; }
.lr-allbtn b { color: #ff9ff0; margin-left: .3cqw; }
.lr-allbtn:hover, .lr-allbtn.on { transform: translateX(-50%) translateY(-6%); box-shadow: inset 0 0 0 .15cqw #ff2bd6, 0 0 1.8cqw rgba(255, 43, 214, .6); }
.lr-setn { position: absolute; left: 1.5%; bottom: 2%; z-index: 5; font-size: .8cqw; font-weight: 700; color: #dfe5ec; background: rgba(8, 9, 12, .75); border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; padding: .25cqw .8cqw; display: flex; align-items: center; gap: .4cqw; }
.lr-setn .flag { width: 1.1cqw !important; height: auto !important; }

/* zaznaczenie i dostępność */
.lr-stage button:focus-visible { outline: .2cqw solid var(--acc); outline-offset: .2cqw; }

/* --- karta pod sceną --- */
.lr-info { margin-top: 12px; }
.lr-sumgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lr-card { border: 1px solid var(--line); border-left: 4px solid var(--rc, var(--acc)); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc, var(--acc)) 9%, transparent), transparent 65%); }
.lr-card.gold { --rc: #ffc531; }
.lr-sumgrid .lr-card:last-child { --rc: #b46cff; }
.lr-ch { display: flex; align-items: center; gap: 12px; }
.lr-ch > div { min-width: 0; flex: 1; }
.lr-ch b { display: block; font-size: 15px; }
.lr-ch small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.lr-cico { width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
.lr-cico .ico, .lr-cico img { width: 56px !important; height: 56px !important; object-fit: contain; }
.lr-cico .flag { width: 48px !important; height: auto !important; }
.lr-sum { font-style: normal; font-family: var(--display); font-size: 24px; color: var(--acc); }
.lr-gives { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lr-g { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--gc, #39ff9f) 10%, #0d0f14); border: 1px solid color-mix(in srgb, var(--gc, #39ff9f) 30%, transparent); font-size: 13px; }
.lr-g span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lr-g .sk { width: 18px; height: 18px; }
.lr-g b { color: var(--gc, #39ff9f); }
.lr-allc { --rc: #ff2bd6; }
.lr-allg h4 { margin: 4px 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lr-allg h4 small { color: var(--acc); margin-left: 4px; }
.lr-alll { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.lr-allt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: color-mix(in srgb, var(--rc, #556) 8%, #0d0f14); border: 1px solid color-mix(in srgb, var(--rc, #556) 35%, transparent); }
.lr-allt > span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.lr-allt > span img, .lr-allt > span .ico { width: 38px !important; height: 38px !important; object-fit: contain; }
.lr-allt .mpic.off { opacity: .3; filter: grayscale(1); }
.lr-allt div { min-width: 0; } .lr-allt b { display: block; font-size: 13px; } .lr-allt small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-allemo { font-style: normal; font-size: 26px; }
.lr-card .row { display: flex; gap: 6px; flex-wrap: wrap; }
.lr-pips { display: flex; gap: 4px; }
.lr-pips i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.lr-pips i.on { background: var(--acc); box-shadow: 0 0 8px rgba(198, 255, 0, .5); }
.lr-card .pz-sty { margin: 0 0 6px; }

@media (max-width: 1000px) { .lr-sumgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .lr-wrap { overflow-x: auto; margin: 0 -4px; scrollbar-width: thin; }
  .lr-stage { min-width: 680px; }
  .lr-sumgrid { grid-template-columns: 1fr; }
}
