/* Arcade 49 — neonowy automat. */
:root {
  --bg: #0b0420;
  --bg2: #150a35;
  --panel: #1c0f45;
  --panel2: #251459;
  --line: #3b2a7a;
  --text: #efe9ff;
  --muted: #a99bd6;
  --pink: #ff2bd6;
  --cyan: #20f0ff;
  --yellow: #ffe14d;
  --green: #39ff88;
  --violet: #a46bff;
  --red: #ff3b5c;
  --orange: #ff8a1f;
  --ice: #8fd8ff;

  --t-legenda: #ffc93c; --t-epicka: #c86bff; --t-rzadka: #3fa8ff; --t-zwykła: #9aa3c7; --t-underdog: #44e0a0;
  --pix: "Press Start 2P", ui-monospace, monospace;
  --ui: "Chakra Petch", system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #3a0f6e 0%, transparent 60%),
    linear-gradient(transparent 0 0),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--ui);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before { /* siatka „synthwave” */
  content: ""; position: fixed; inset: auto 0 0 0; height: 45vh; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(255, 43, 214, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(32, 240, 255, .14) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(32, 240, 255, .14) 0 1px, transparent 1px 32px);
  transform: perspective(400px) rotateX(55deg); transform-origin: bottom;
}
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
a { color: var(--cyan); }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.muted { color: var(--muted); }
b { color: #fff; }

/* ---------------------------------------------------------------- nagłówek */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(11, 4, 32, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { text-decoration: none; display: grid; line-height: 1.2; }
.logo-main {
  font: 20px var(--pix); color: var(--pink); letter-spacing: 2px;
  text-shadow: 0 0 6px var(--pink), 0 0 22px rgba(255, 43, 214, .7);
}
.logo-main .dot { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.logo-sub { font: 8px var(--pix); color: var(--muted); letter-spacing: 1px; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav a:hover { background: var(--panel2); color: var(--yellow); }
.sound {
  font: 10px var(--pix); color: var(--green); background: transparent;
  border: 2px solid currentColor; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.sound[aria-pressed="false"] { color: var(--muted); }

/* ---------------------------------------------------------------- automat */
.machine-wrap { padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 40px) 24px; }
.cabinet {
  max-width: 1180px; margin: 0 auto;
  background: linear-gradient(180deg, #2a1366, #160a3a);
  border: 3px solid #4d34a8; border-radius: 28px;
  box-shadow: 0 0 0 6px #120832, 0 0 60px rgba(255, 43, 214, .35), inset 0 2px 0 rgba(255, 255, 255, .15);
  padding: 18px;
}
.marquee {
  display: flex; justify-content: center; gap: 22px;
  font: clamp(10px, 2vw, 14px) var(--pix); color: var(--yellow);
  background: #0a0320; border-radius: 14px; padding: 14px; border: 2px solid #3b2a7a;
  text-shadow: 0 0 10px rgba(255, 225, 77, .8);
}
.blink { animation: blink 1s steps(2) infinite; color: var(--pink); }
@keyframes blink { 50% { opacity: 0; } }

.machine {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px;
  margin-top: 18px; align-items: start;
}
.drum-box {
  position: relative; background: radial-gradient(circle at 50% 40%, #1b0b4a, #07021a 70%);
  border-radius: 22px; border: 2px solid var(--line); padding: 10px;
  box-shadow: inset 0 0 40px rgba(32, 240, 255, .15);
}
#drum { width: 100%; height: auto; display: block; aspect-ratio: 1; }
.chute {
  position: absolute; right: 6%; bottom: 8%; width: 18%; height: 7%;
  border-radius: 0 0 14px 14px; border: 3px solid var(--cyan); border-top: none;
  box-shadow: 0 0 14px var(--cyan); opacity: .55;
}
.drum-status {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font: 9px var(--pix); color: var(--cyan); background: rgba(7, 2, 26, .85);
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); white-space: nowrap;
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis;
}

.controls { display: grid; gap: 18px; }
.tray {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  background: #07021a; border-radius: 18px; padding: 14px; border: 2px solid var(--line);
  box-shadow: inset 0 6px 20px rgba(0, 0, 0, .6);
}
.slot {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed #3b2a7a;
  display: grid; place-items: center;
}
.ball {
  --c: rgb(150, 130, 220);
  width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--c) 30%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  color: #120832; font: 700 clamp(14px, 2.6vw, 22px)/1 var(--ui);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent), inset -4px -6px 10px rgba(0, 0, 0, .35);
  position: relative;
}
.ball::after { /* biała plakietka z numerem */
  content: ""; position: absolute; inset: 24%; border-radius: 50%; background: rgba(255, 255, 255, .86); z-index: 0;
}
.ball > span { position: relative; z-index: 1; }
.ball.drop { animation: drop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drop { from { transform: translateY(-140%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.control-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.big-btn {
  width: clamp(150px, 22vw, 190px); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 6px solid #5a0d2a; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8aa0, var(--red) 45%, #a3002a 100%);
  box-shadow: 0 10px 0 #5a0d2a, 0 14px 30px rgba(255, 59, 92, .55), inset 0 -8px 16px rgba(0, 0, 0, .25);
  display: grid; place-content: center; gap: 8px; transition: transform .08s, box-shadow .08s;
}
.big-btn-cap { font: clamp(13px, 2vw, 16px) var(--pix); text-shadow: 0 3px 0 #7a0020; }
.big-btn-ver { font: 9px var(--pix); opacity: .85; }
.big-btn:hover { filter: brightness(1.08); }
.big-btn:active, .big-btn.pressed { transform: translateY(8px); box-shadow: 0 2px 0 #5a0d2a, 0 4px 14px rgba(255, 59, 92, .5); }
.big-btn:disabled { cursor: progress; filter: saturate(.6) brightness(.85); }
.big-btn:focus-visible { outline: 4px solid var(--yellow); outline-offset: 6px; }

.power { display: grid; gap: 8px; background: var(--panel); padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); }
.power-head { display: flex; justify-content: space-between; font: 10px var(--pix); color: var(--yellow); }
.power-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.power input { width: 100%; accent-color: var(--pink); }

.expert { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.expert > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; font: 10px var(--pix); color: var(--cyan);
}
.expert > summary::-webkit-details-marker { display: none; }
.expert > summary::before { content: "▶"; color: var(--pink); margin-right: 4px; transition: transform .2s; }
.expert[open] > summary::before { transform: rotate(90deg); }
.expert-title { margin-right: auto; }
.flt-count { font: 600 13px var(--ui); color: var(--muted); }
.flt-count.on { color: #0b0420; background: var(--green); border-radius: 999px; padding: 2px 10px; }
.expert-note { margin: 0 16px 12px; font-size: 13px; color: var(--muted); }
.flt-list { display: grid; gap: 8px; padding: 0 12px; max-height: 520px; overflow: auto; }
.flt {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: start;
  background: #0f0630; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.flt.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.flt.blocked { opacity: .5; }
.flt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flt-head b { font-size: 15px; }
.flt-no { font: 9px var(--pix); color: var(--yellow); }
.kind { font: 600 11px var(--ui); text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; padding: 1px 6px; }
.kind.rule { color: var(--cyan); border: 1px solid var(--cyan); }
.kind.weight { color: var(--pink); border: 1px solid var(--pink); }
.info-btn {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text); cursor: pointer; font: 700 14px var(--ui);
}
.info-btn[aria-expanded="true"] { background: var(--cyan); color: #0b0420; }
.flt-short { margin: 4px 0 0; font-size: 13px; color: var(--text); }
.flt-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.flt-meta b { color: var(--cyan); }
.flt-info { margin-top: 8px; font-size: 13px; color: var(--muted); border-left: 3px solid var(--cyan); padding-left: 10px; }
.flt-info p { margin: 0 0 6px; }
.flt-block { margin-top: 6px; font-size: 12px; color: var(--orange); }
.flt-param { margin-top: 6px; font-size: 13px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.flt-param select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font: inherit; }
.switch { position: relative; width: 44px; height: 24px; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #2b1d5e; border: 1px solid var(--line); transition: background .15s; }
.slider::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: transform .15s, background .15s;
}
.switch input:checked + .slider { background: color-mix(in srgb, var(--green) 35%, #0b0420); border-color: var(--green); }
.switch input:checked + .slider::after { transform: translateX(20px); background: var(--green); box-shadow: 0 0 10px var(--green); }
.switch input:focus-visible + .slider { outline: 3px solid var(--yellow); outline-offset: 2px; }
.flt-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 14px; }
.flt-summary { flex: 1; min-width: 200px; font-size: 13px; color: var(--muted); }
.flt-summary b { color: var(--yellow); }
.flt-summary .warn { color: var(--orange); }
.flt-clear { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; font: 600 13px var(--ui); }
.ro-filters { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ro-filters .fchip { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--green); color: var(--green); font-size: 12px; }

.readout {
  background: #07021a; border-radius: var(--r); padding: 14px 16px; border: 1px solid var(--line);
  min-height: 110px; font-size: 15px;
}
.ro-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ro-row {
  --t: var(--t-zwykła);
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; cursor: pointer;
  padding: 8px 10px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  border-left: 4px solid var(--c);
  animation: row-in .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.ro-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, transparent), transparent 80%); }
.ro-row .ball { width: 44px; font-size: 16px; }
.ro-row.t-legenda { --t: var(--t-legenda); } .ro-row.t-epicka { --t: var(--t-epicka); } .ro-row.t-rzadka { --t: var(--t-rzadka); }
.ro-row.t-zwykła { --t: var(--t-zwykła); } .ro-row.t-underdog { --t: var(--t-underdog); }
@keyframes row-in { from { opacity: 0; transform: translateX(30px); } }
.ro-main { display: grid; gap: 6px; min-width: 0; }
.ro-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ro-count { color: var(--muted); font-size: 14px; }
.ro-count b { font: 13px var(--pix); color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.ro-rank { margin-left: auto; font: 10px var(--pix); color: var(--text); }
.ro-row .bar > i { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, #0b0420), var(--c)); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.ro-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.tray-legend { margin-top: -8px; max-width: none; font-size: 12px; }
.readout p { margin: 0 0 6px; }
.readout .big { font: 12px var(--pix); color: var(--green); line-height: 1.8; }
.stat-line { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.stat-line b { color: var(--cyan); }

.cabinet-foot {
  display: grid; grid-template-columns: 1fr 1.4fr 170px; gap: 18px; margin-top: 18px; align-items: stretch;
}
.cabinet-foot > a.coffee {
  aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  text-decoration: none; color: #0b0420; padding: 14px; border-radius: 18px; border: none;
  background: linear-gradient(160deg, #fff2a8, var(--yellow) 45%, var(--orange));
  box-shadow: 0 6px 0 #a35a00, 0 0 26px rgba(255, 225, 77, .4);
  transition: transform .12s, box-shadow .12s;
}
.coffee:hover { transform: translateY(-3px) rotate(-1.5deg); }
.coffee:active { transform: translateY(4px); box-shadow: 0 2px 0 #a35a00; }
.coffee:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }
.coffee-cup { font-size: 40px; line-height: 1; }
.coffee b { font: 10px/1.5 var(--pix); color: #0b0420; }
.coffee small { font: 600 12px/1.3 var(--ui); }
.cabinet-foot > div { background: var(--panel); border-radius: var(--r); padding: 12px 16px; border: 1px solid var(--line); }
.label { display: block; font: 9px var(--pix); color: var(--muted); margin-bottom: 8px; letter-spacing: 1px; }
.mini-balls { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 8px; flex-wrap: wrap; }
.mini-balls .ball, .fx-balls .ball, .my-sets .ball { width: 34px; font-size: 13px; }
.my-sets { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 128px; overflow: auto; }
.my-sets li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.my-sets .ball { width: 28px; font-size: 11px; }

/* ---------------------------------------------------------------- sekcje */
.section { max-width: 1180px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 8px; }
.h2 { font: clamp(16px, 3vw, 24px)/1.4 var(--pix); margin: 0 0 14px; color: #fff; text-shadow: 0 0 14px rgba(164, 107, 255, .8); }
.h2-kicker { display: block; font-size: 10px; color: var(--cyan); margin-bottom: 10px; letter-spacing: 3px; text-shadow: 0 0 8px var(--cyan); }
.h3 { font: 12px var(--pix); color: var(--yellow); margin: 36px 0 14px; }
.lead { color: var(--muted); max-width: 760px; margin: 0 0 20px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --t: var(--cyan);
  background: transparent; color: var(--text); border: 2px solid color-mix(in srgb, var(--t) 60%, transparent);
  border-radius: 999px; padding: 6px 14px; font: 600 14px var(--ui); cursor: pointer;
}
.chip.on { background: var(--t); color: #0b0420; }
.t-legenda { --t: var(--t-legenda); } .t-epicka { --t: var(--t-epicka); } .t-rzadka { --t: var(--t-rzadka); }
.t-zwykła { --t: var(--t-zwykła); } .t-underdog { --t: var(--t-underdog); }
.sort { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.sort select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card {
  --t: var(--t-zwykła);
  position: relative; text-align: left; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 22%, var(--panel)) 0%, var(--panel) 55%);
  border: 2px solid color-mix(in srgb, var(--t) 70%, transparent); border-radius: 16px; padding: 12px;
  display: grid; gap: 8px; transition: transform .15s, box-shadow .15s;
}
.card:hover, .card:focus-visible { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 10px 30px color-mix(in srgb, var(--t) 45%, transparent); outline: none; }
.card .ball { width: 56px; font-size: 20px; }
.card-top { display: flex; justify-content: space-between; align-items: start; }
.tier {
  font: 9px/1 var(--pix); color: #0b0420; background: var(--t); border-radius: 6px; padding: 6px 8px;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35) inset, 0 0 14px color-mix(in srgb, var(--t) 75%, transparent);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.t-legenda .tier, .tier.t-legenda { background: linear-gradient(180deg, #fff2a8, var(--t-legenda) 55%, #e09a00); animation: glow 2.4s ease-in-out infinite; }
.lvl { font: 10px var(--pix); color: var(--yellow); }
.bar { height: 8px; background: #0a0320; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--t), #fff); border-radius: 4px; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.card.legend-glow { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--t) 60%, transparent); } }
.card.t-legenda { --t: var(--t-legenda); } .card.t-epicka { --t: var(--t-epicka); } .card.t-rzadka { --t: var(--t-rzadka); }
.card.t-zwykła { --t: var(--t-zwykła); } .card.t-underdog { --t: var(--t-underdog); }

.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board { background: #07021a; border: 2px solid var(--line); border-radius: 18px; padding: 18px; }
.board-h { font: 11px var(--pix); margin: 0 0 14px; }
.board-h.hot { color: var(--orange); text-shadow: 0 0 10px rgba(255, 138, 31, .7); }
.board-h.cold { color: var(--ice); text-shadow: 0 0 10px rgba(143, 216, 255, .7); }
.score { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.score li {
  display: grid; grid-template-columns: 34px 38px 1fr 54px; gap: 10px; align-items: center;
  font: 11px var(--pix); color: var(--text); cursor: pointer; padding: 4px; border-radius: 8px;
}
.score li:hover { background: var(--panel); }
.score li:first-child { color: var(--yellow); }
.score li:first-child .pos { animation: blink 1.2s steps(2) infinite; }
.score .ball { width: 34px; font-size: 12px; }
.score .bar > i { background: linear-gradient(90deg, var(--pink), var(--yellow)); }
.score.least .bar > i { background: linear-gradient(90deg, var(--cyan), var(--ice)); }
.score .val { text-align: right; color: var(--cyan); }

.fx { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fx-col { border-radius: 18px; padding: 18px; border: 2px solid; }
.fx-col h3 { margin: 0; font: 13px var(--pix); }
.fx-col p { margin: 8px 0 14px; font-size: 14px; }
.fire { border-color: var(--orange); background: linear-gradient(160deg, rgba(255, 138, 31, .18), transparent 60%); }
.fire h3 { color: var(--orange); }
.ice { border-color: var(--ice); background: linear-gradient(160deg, rgba(143, 216, 255, .16), transparent 60%); }
.ice h3 { color: var(--ice); }
.fx-balls { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-balls .chipball { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); cursor: pointer; }
.fx-balls .ball { width: 46px; font-size: 16px; }
.fire .ball { animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 50% { box-shadow: 0 0 22px var(--orange), 0 -6px 18px rgba(255, 59, 92, .6); } }
.ice .ball { filter: saturate(.35) brightness(1.1); box-shadow: 0 0 16px var(--ice); }

.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 520px; }
.heat button {
  aspect-ratio: 1; border-radius: 10px; border: none; cursor: pointer;
  font: 700 15px var(--ui); color: #0b0420;
}
.heat button:hover { outline: 3px solid #fff; }
.heat-legend { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); max-width: 520px; }
.heat-legend i { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #2b4bff, #7d3cff, #ff2bd6, #ff8a1f, #ffe14d); }
.fair { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; max-width: 760px; }

.loot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.loot-btn {
  display: grid; gap: 4px; text-decoration: none; color: #0b0420; background: var(--yellow);
  font: 12px var(--pix); padding: 16px; border-radius: 14px; box-shadow: 0 6px 0 #a88a00;
  transition: transform .08s, box-shadow .08s;
}
.loot-btn small { font: 600 13px var(--ui); }
.loot-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #a88a00; }
.loot-btn.alt { background: var(--cyan); box-shadow: 0 6px 0 #0a8c99; }
.endpoints { display: grid; gap: 8px; }
.ep {
  display: grid; grid-template-columns: 56px minmax(150px, 220px) 1fr; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px;
}
.ep > code:first-of-type { color: var(--cyan); }
.ep span:last-child { color: var(--muted); }
.ep span code { color: var(--text); font-size: 13px; }
.m { font: 9px var(--pix); padding: 5px 6px; border-radius: 4px; text-align: center; color: #0b0420; }
.m.get { background: var(--green); } .m.post { background: var(--pink); }
.code {
  background: #07021a; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  overflow-x: auto; color: var(--green); font-size: 14px; margin: 18px 0 0;
}

.foot { max-width: 1180px; margin: 60px auto 0; padding: 26px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--line); font-size: 14px; }
.foot p { margin: 0 0 8px; max-width: 860px; }

/* ---------------------------------------------------------------- karta postaci */
.modal {
  border: none; padding: 0; background: transparent; color: var(--text);
  width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px);
}
.modal::backdrop { background: rgba(5, 0, 20, .78); backdrop-filter: blur(4px); }
.modal-in {
  --t: var(--t-zwykła);
  background: linear-gradient(160deg, color-mix(in srgb, var(--t) 30%, var(--panel)), var(--bg2) 60%);
  border: 3px solid var(--t); border-radius: 22px; padding: 24px; box-shadow: 0 0 50px color-mix(in srgb, var(--t) 50%, transparent);
}
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: 16px;
}
.m-head { display: flex; gap: 18px; align-items: center; }
.m-head .ball { width: 96px; font-size: 34px; flex: none; }
.m-title { font: 14px/1.6 var(--pix); margin: 6px 0; }
.m-quote { color: var(--muted); font-style: italic; margin: 0; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.m-stat { background: rgba(7, 2, 26, .6); border-radius: 12px; padding: 10px 12px; }
.m-stat b { display: block; font: 13px var(--pix); color: var(--yellow); margin-top: 6px; }
.m-stat span { font-size: 12px; color: var(--muted); }
.decade-chart { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- toasty */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 90; max-width: min(360px, calc(100% - 32px)); }
.toast {
  background: #07021a; border: 2px solid var(--yellow); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 0 24px rgba(255, 225, 77, .4); animation: toast-in .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.toast b { display: block; font: 9px var(--pix); color: var(--yellow); margin-bottom: 6px; }
.toast.out { animation: toast-out .4s ease forwards; }
@keyframes toast-in { from { transform: translateX(120%); } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ---------------------------------------------------------------- responsywność */
@media (max-width: 900px) {
  .machine, .cabinet-foot, .boards, .fx { grid-template-columns: 1fr; }
  .cabinet-foot > a.coffee { width: 180px; justify-self: center; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .sound { margin-left: auto; }
  .ep { grid-template-columns: 52px 1fr; }
  .ep span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cabinet { padding: 10px; border-radius: 20px; }
  .marquee { gap: 10px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .m-head .ball { width: 72px; font-size: 26px; }
  .score li { grid-template-columns: 26px 34px 1fr 44px; gap: 6px; font-size: 9px; }
  .ro-rank { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
