/* =====================================================================
   AVE TYLDA — VHS / 90s underground. czarno-białe, akcent tylko punktowo.
   ===================================================================== */
:root {
  --bg: #000;
  --bg-2: #0a0a0b;
  --bg-3: #14141a;
  --fg: #f4f4f5;
  --fg-2: #d4d4d8;
  --mute: #9c9ca3;
  --dim: #6b6b75;
  --line: #2a2a33;
  --line-2: #3d3d47;
  --acc: #37aae1;      /* fala z logo — jedyny codzienny kolor */
  --acc-2: #ff6a1f;    /* taśma — rzadko */

  --f-disp: 'Anton', 'Archivo Black', Impact, sans-serif;
  --f-osd: 'VT323', 'JetBrains Mono', monospace;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fx: 1;             /* intensywność efektów (suwak TRACKING) */
  --osd-glow: 0 0 6px rgba(255,255,255,.55), 0 0 1px #fff;
  --ease: cubic-bezier(.3,0,.3,1);
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --osd-h: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden; min-height: 100vh;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 2v7M12 15v7M2 12h7M15 12h7' stroke='%23fff' stroke-width='2'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%2337aae1'/%3E%3C/svg%3E") 12 12, crosshair;
}
a, button, label, select, [role=button] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='4' y='4' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Crect x='10' y='10' width='4' height='4' fill='%2337aae1'/%3E%3C/svg%3E") 12 12, pointer; }
::selection { background: var(--acc); color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- TYPO ---------- */
.disp { font-family: var(--f-disp); text-transform: uppercase; line-height: .9; letter-spacing: .01em; font-weight: 400; }
.osd { font-family: var(--f-osd); text-transform: uppercase; letter-spacing: .04em; text-shadow: var(--osd-glow); }
.mono { font-family: var(--f-mono); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--mute); }
.eyebrow b { color: var(--acc); font-weight: 500; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--mute); }
.acc { color: var(--acc); }
.spark { color: var(--acc); }

/* ---------- WARSTWY CRT ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
#fx .scan { position: absolute; inset: 0; opacity: calc(.55 * var(--fx));
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.38) 2px 3px); }
#fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(.06 * var(--fx)); image-rendering: pixelated; }
#fx .vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
#fx .track { position: absolute; left: 0; right: 0; height: 9vh; top: 0; transform: translateY(-12vh); will-change: transform; opacity: calc(.5 * var(--fx));
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07) 30%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.04) 70%, transparent);
  }
#fx .track.run { animation: track 1.6s linear; }
@keyframes track { from { transform: translateY(-12vh); } to { transform: translateY(110vh); } }
body.jitter main { animation: jitter .22s steps(2) 2; }
@keyframes jitter { 0% { transform: translate(0); } 50% { transform: translate(-3px, 1px) skewX(-1deg); } 100% { transform: translate(2px, 0); } }

/* ---------- OSD (rogi ekranu jak magnetowid) ---------- */
.osd-bar { position: fixed; z-index: 8000; pointer-events: none; font-size: clamp(18px, 2vw, 26px); line-height: 1; }
.osd-tl { top: 18px; left: var(--gut); display: flex; gap: .6em; align-items: center; }
.osd-tr { top: 18px; right: var(--gut); text-align: right; }
.osd-bl { bottom: 18px; left: var(--gut); }
.osd-br { bottom: 18px; right: var(--gut); text-align: right; }
.osd-tl .rec { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 8px var(--acc-2); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1s steps(1) infinite; }
#ch-big { position: fixed; top: 70px; right: var(--gut); z-index: 8001; font-size: clamp(56px, 8vw, 110px); opacity: 0; pointer-events: none; color: #fff; }
#ch-big.on { opacity: 1; transition: opacity .1s; }

/* ---------- NAWIGACJA = KANAŁY ---------- */
.top { position: sticky; top: 0; z-index: 7000; background: linear-gradient(#000 70%, transparent); padding: 64px var(--gut) 18px; }
.top-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 78px; width: auto; }
.brand span { font: 900 26px/1 'Nunito', var(--f-body); letter-spacing: -.02em; }
.chan { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; flex-wrap: wrap; }
.chan a { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; text-decoration: none; font-family: var(--f-osd); font-size: 22px; text-transform: uppercase; color: var(--mute); transition: color .14s, background .14s; }
.chan a i { font-style: normal; font-size: 15px; color: var(--dim); }
.chan a:hover, .chan a[aria-current=page] { color: #000; background: #fff; }
.chan a:hover i, .chan a[aria-current=page] i { color: #000; }
.bag-link { display: flex; gap: 8px; align-items: center; font: 22px/1 var(--f-osd); text-transform: uppercase; text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-2); }
.bag-link:hover { border-color: var(--acc); }
.bag-link b { font-weight: 400; min-width: 1.2em; text-align: center; background: #fff; color: #000; padding: 1px 4px; }
.bag-link b.pulse { animation: pulse .5s steps(2) 3; }
@keyframes pulse { 50% { background: var(--acc); } }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .top { padding-top: 56px; }
  .chan { position: fixed; inset: auto 0 0 0; background: #000; border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 7500; gap: 0; flex-wrap: nowrap; }
  .chan a { flex-direction: column; align-items: center; gap: 0; font-size: 17px; padding: 6px 6px; line-height: 1; }
  .chan a i { font-size: 12px; }
  .bag-link { margin-left: auto; }
  .osd-bl, .osd-br { display: none; }
  body { padding-bottom: 70px; }
  .brand img { height: 60px; }
}

/* ---------- UKŁAD ---------- */
main { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(56px, 9vw, 128px) 0; position: relative; }
.rule { display: flex; align-items: center; gap: 16px; font: 13px/1 var(--f-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--mute); margin-bottom: 32px; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule.left::before { display: none; }
.h-xl { font-size: clamp(56px, 11vw, 168px); }
.h-l { font-size: clamp(42px, 7vw, 104px); }
.h-m { font-size: clamp(32px, 4.5vw, 64px); }
.h-s { font-size: clamp(24px, 2.6vw, 36px); }

/* glitch: data-text kopiowany na warstwy */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch.g::before { opacity: 1; color: var(--acc); transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); mix-blend-mode: screen; animation: gl1 .3s steps(3) 1; }
.glitch.g::after { opacity: 1; color: #fff; transform: translate(4px, 0); clip-path: inset(60% 0 8% 0); animation: gl2 .3s steps(3) 1; }
@keyframes gl1 { 33% { clip-path: inset(40% 0 30% 0); transform: translate(5px, 0); } 66% { clip-path: inset(80% 0 2% 0); transform: translate(-6px,0); } }
@keyframes gl2 { 33% { clip-path: inset(5% 0 80% 0); transform: translate(-4px, 0); } 66% { clip-path: inset(30% 0 50% 0); transform: translate(3px,0); } }

/* ---------- PRZYCISKI ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; background: #fff; color: #000; font: 26px/1 var(--f-osd); text-transform: uppercase; text-decoration: none; letter-spacing: .04em; border: 0; transition: transform .1s, background .14s, box-shadow .14s; box-shadow: 4px 4px 0 var(--acc); }
.btn:hover { background: var(--acc); box-shadow: 4px 4px 0 #fff; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #fff; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #fff; box-shadow: none; }
.btn.ghost:hover { background: #fff; color: #000; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .arr { font-size: .8em; }
.link { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .14s, color .14s; }
.link:hover { color: var(--acc); border-color: var(--acc); }

/* ---------- BOOT (PRESS START) ---------- */
#boot { position: fixed; inset: 0; z-index: 9500; background: #000; display: grid; place-items: center; padding: var(--gut); }
#boot .scr { width: min(720px, 100%); font: clamp(20px, 2.6vw, 30px)/1.35 var(--f-osd); text-transform: uppercase; text-shadow: var(--osd-glow); }
#boot .scr p { margin: 0; white-space: pre-wrap; min-height: 1.35em; }
#boot .start { margin-top: 40px; font-size: clamp(28px, 4vw, 44px); text-align: center; }
#boot .start > span { animation: bBlink 1.1s steps(1) infinite; display: inline-block; }
@keyframes bBlink { 50% { opacity: .3; } }
#boot .start small { display: block; font-size: 18px; color: var(--dim); margin-top: 10px; text-shadow: none; }
.osd-tl { pointer-events: auto; text-decoration: none; color: inherit; }
#boot .logo { width: 170px; height: auto; margin: 0 auto 36px; display: block; }
#boot.ready .logo { opacity: 1; }
#boot.out { animation: crtOn .4s var(--ease) forwards; will-change: transform, opacity; }
@keyframes crtOn { 0% { transform: none; opacity: 1; } 45% { transform: scaleY(.006); opacity: 1; } 100% { transform: scale(0, .006); opacity: 0; } }
#tvin { position: fixed; inset: 0; z-index: 9450; pointer-events: none; background: #fff; opacity: 0; transform: scaleY(.006); }
body.on #tvin { animation: tvIn .55s var(--ease) forwards; }
@keyframes tvIn { 0% { opacity: .9; transform: scaleY(.006); } 35% { opacity: .55; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- STATIC przy zmianie kanału ---------- */
#static { position: fixed; inset: 0; z-index: 8500; pointer-events: none; opacity: 0; background: #000; }
#static canvas { width: 100%; height: 100%; image-rendering: pixelated; }
#static.on { opacity: 1; }
#static.fade { opacity: 0; transition: opacity .35s; }

/* ---------- HERO z latarką ---------- */
.hero { position: relative; height: calc(100svh - 140px); min-height: 520px; overflow: hidden; background: #000; --x: 50%; --y: 50%; --r: 180px; }
.hero .ph { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1) contrast(1.25) brightness(.95); }
.hero .ph.base { opacity: .07; }
.hero .ph.lit { -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 45%, transparent 100%); mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 45%, transparent 100%); }
.hero .secret { position: absolute; font: clamp(18px, 2vw, 26px)/1.1 var(--f-osd); color: var(--acc); text-transform: uppercase; letter-spacing: .1em; -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 30%, transparent 70%); mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 30%, transparent 70%); }
.hero-txt { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); pointer-events: none; }
.hero-txt .h-xl { mix-blend-mode: difference; }
.hero-txt .lead { margin-top: 18px; }
.hero-hint { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font: 18px/1 var(--f-osd); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.hero-cta { pointer-events: auto; margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- TICKER (naklejka z kasety) ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; font: 22px/1 var(--f-osd); text-transform: uppercase; padding: 12px 0; color: var(--fg-2); }
.ticker > div { display: inline-block; animation: tick 40s linear infinite; padding-left: 100%; }
.ticker span { margin: 0 28px; }
.ticker .spark { margin: 0; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- KAFLE-KANAŁY (szum → obraz) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; text-decoration: none; background: #000; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.75); transform: scale(1.02); transition: transform .4s var(--ease), filter .4s; }
.tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; transition: opacity .35s; image-rendering: pixelated; }
.tile:hover canvas, .tile:focus-visible canvas { opacity: 0; }
.tile:hover img { transform: scale(1.06); filter: grayscale(1) contrast(1.2) brightness(.9); }
.tile .lbl { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; }
.tile .lbl .h-m { text-shadow: 0 2px 20px #000; }
.tile .ch { position: absolute; top: 16px; left: 20px; font-size: 30px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16/10; } }

/* ---------- INWENTARZ (siatka produktów) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.filters button { font: 22px/1 var(--f-osd); text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line-2); color: var(--mute); }
.filters button[aria-pressed=true], .filters button:hover { background: #fff; color: #000; border-color: #fff; }
.filters button[aria-pressed=true]::before { content: "▶ "; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; }
.card { position: relative; background: var(--bg-2); text-decoration: none; display: flex; flex-direction: column; outline: 1px solid transparent; transition: outline-color .14s; }
.card:hover { outline-color: var(--acc); z-index: 1; }
.card .img { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.card .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .25s, transform .4s var(--ease); }
.card:hover .img img { filter: none; transform: scale(1.03); }
.card .slot { position: absolute; top: 10px; left: 10px; font: 18px/1 var(--f-osd); background: #000; padding: 4px 6px; color: var(--mute); }
.card .meta { padding: 16px 16px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card .name { font: 22px/1.05 var(--f-disp); text-transform: uppercase; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font: 26px/1 var(--f-osd); }
.price s { color: var(--dim); font-size: .8em; margin-right: 6px; }
.price .new { color: var(--acc); }
.tag { font: 500 11px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; }
.tag.hot { color: var(--acc-2); }
.tag.acc { color: var(--acc); }
.card.out .img img { opacity: .35; }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stamp span { font: 34px/1 var(--f-osd); border: 3px solid #fff; padding: 8px 14px; transform: rotate(-8deg); background: rgba(0,0,0,.6); letter-spacing: .08em; }

/* ---------- STRONA PRODUKTU (ekran przedmiotu) ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery .main-img { position: relative; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main-img .osd { position: absolute; top: 12px; left: 14px; font-size: 22px; }
.gallery .thumbs { display: flex; gap: 2px; margin-top: 2px; overflow-x: auto; }
.gallery .thumbs button { width: 84px; flex: 0 0 84px; aspect-ratio: 1; opacity: .45; transition: opacity .14s; }
.gallery .thumbs button[aria-current=true], .gallery .thumbs button:hover { opacity: 1; outline: 1px solid var(--acc); outline-offset: -1px; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.info { position: sticky; top: 150px; }
.info h1 { font-size: clamp(36px, 4.6vw, 64px); margin: 14px 0 18px; }
.stats { border: 1px solid var(--line); margin: 22px 0; }
.stats div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 14px/1.3 var(--f-mono); }
.stats div:last-child { border-bottom: 0; }
.stats dt { color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.stats dd { margin: 0; }
.bar { height: 10px; background: var(--bg-3); position: relative; margin-top: 4px; }
.bar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 8px); }
.bar.low i { background: repeating-linear-gradient(90deg, var(--acc-2) 0 6px, transparent 6px 8px); }
.opt { margin: 20px 0; }
.opt .lbl { font: 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; display: block; }
.picker { display: flex; flex-wrap: wrap; gap: 4px; }
.picker button { min-width: 56px; padding: 10px 12px; font: 22px/1 var(--f-osd); border: 1px solid var(--line-2); text-transform: uppercase; }
.picker button[aria-pressed=true] { background: #fff; color: #000; border-color: #fff; }
.picker button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.buy { display: flex; gap: 8px; align-items: stretch; margin-top: 24px; flex-wrap: wrap; }
.qty { display: flex; border: 1px solid var(--line-2); }
.qty button { width: 44px; font: 24px/1 var(--f-osd); }
.qty button:hover { background: #fff; color: #000; }
.qty input { width: 44px; background: transparent; border: 0; color: #fff; text-align: center; font: 24px/1 var(--f-osd); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.desc { margin-top: 8px; color: var(--fg-2); max-width: 70ch; }
.desc > :first-child { margin-top: 16px; }
.desc h2, .desc h3, .desc h4 { font: 26px/1.1 var(--f-disp); text-transform: uppercase; color: var(--fg); margin: 28px 0 12px; }
.desc ul, .desc ol { padding-left: 1.2em; }
.desc li { margin: 2px 0; }
.desc strong { color: var(--fg); }
.ship-note { margin-top: 18px; font: 13px/1.5 var(--f-mono); color: var(--mute); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .info { position: static; order: -1; } .gallery { display: contents; } .gallery .main-img { order: -2; } .gallery .thumbs { order: -1; margin-bottom: 8px; } }

/* ---------- KOSZYK = PLECAK ---------- */
.bag { display: grid; grid-template-columns: 1fr 400px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bag-items { display: grid; gap: 2px; }
.bag-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 12px; background: var(--bg-2); align-items: center; }
.bag-item img { width: 96px; height: 96px; object-fit: cover; filter: grayscale(1); }
.bag-item .n { font: 20px/1.1 var(--f-disp); text-transform: uppercase; }
.bag-item .v { font: 13px/1.4 var(--f-mono); color: var(--mute); }
.bag-item .rm { font: 16px/1 var(--f-osd); color: var(--dim); text-transform: uppercase; margin-top: 8px; }
.bag-item .rm:hover { color: var(--acc-2); }
.bag-item .r { text-align: right; display: grid; gap: 10px; justify-items: end; }
.empty-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-top: 2px; }
.empty-slots i { aspect-ratio: 1; border: 1px dashed var(--line); }
.panel { border: 1px solid var(--line); padding: 22px; position: sticky; top: 150px; background: #000; }
.panel h2 { font: 30px/1 var(--f-osd); text-transform: uppercase; margin-bottom: 16px; }
.menu { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 2px; }
.menu label { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 10px 10px; font: 22px/1 var(--f-osd); text-transform: uppercase; color: var(--mute); border: 1px solid transparent; }
.menu input { position: absolute; opacity: 0; pointer-events: none; }
.menu label::before { content: ""; }
.menu input:checked + label { color: #fff; border-color: var(--line-2); background: var(--bg-3); }
.menu input:checked + label::before { content: "▶"; color: var(--acc); }
.menu input:disabled + label { opacity: .3; text-decoration: line-through; }
.menu input:focus-visible + label { outline: 2px solid var(--acc); }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font: 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea, .field select { background: var(--bg-2); border: 1px solid var(--line-2); color: #fff; padding: 12px 14px; font: 16px/1.3 var(--f-mono); border-radius: 2px; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--acc); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); margin: 14px 0; }
.check input { margin-top: 4px; accent-color: var(--acc); width: 16px; height: 16px; flex: 0 0 16px; }
.sum { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; display: grid; gap: 6px; font: 15px/1.3 var(--f-mono); }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font: 34px/1 var(--f-osd); margin-top: 10px; }
.free-bar { margin: 6px 0 16px; font: 13px/1.4 var(--f-mono); color: var(--mute); }
.err { color: var(--acc-2); font: 14px/1.4 var(--f-mono); margin-top: 10px; min-height: 1.4em; }
@media (max-width: 900px) { .bag { grid-template-columns: 1fr; } .panel { position: static; } }

/* ---------- LABEL: półka z kasetami VHS ---------- */
.shelf { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; padding: 40px 4px 0; border-bottom: 6px solid #fff; scrollbar-width: thin; }
.spine { flex: 0 0 64px; height: 360px; background: #fff; color: #000; position: relative; text-decoration: none; transition: transform .2s var(--ease), background .14s; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 14px 0; }
.spine:nth-child(3n+2) { background: #d4d4d8; height: 330px; }
.spine:nth-child(4n+3) { background: #111; color: #fff; outline: 1px solid var(--line-2); height: 345px; }
.spine:hover, .spine:focus-visible { transform: translateY(-34px); }
.spine .t { writing-mode: vertical-rl; transform: rotate(180deg); font: 26px/1 var(--f-disp); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; max-height: 230px; }
.spine .c { font: 15px/1 var(--f-osd); }
.spine .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); }
.spine:hover .dot { background: var(--acc-2); }
.spine-info { min-height: 3.2em; margin-top: 18px; font: 24px/1.3 var(--f-osd); text-transform: uppercase; }

/* ---------- 2 GRACZY (współpraca) ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: stretch; }
.player { border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 36px); position: relative; transition: border-color .14s; }
.player:hover { border-color: #fff; }
.player .p { font: 26px/1 var(--f-osd); color: var(--acc); }
.player:nth-child(3) .p { color: var(--acc-2); }
.player ul { padding-left: 1.1em; color: var(--fg-2); }
.vs { align-self: center; font: clamp(48px, 7vw, 96px)/1 var(--f-disp); color: var(--dim); }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } .vs { text-align: center; } }

/* ---------- TELEGAZETA ---------- */
.ttx { scroll-margin-top: 130px; background: #000; border: 1px solid var(--line-2); font: clamp(18px, 2.1vw, 26px)/1.25 var(--f-osd); text-transform: uppercase; max-width: 980px; margin: 0 auto; }
.ttx-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #fff; color: #000; flex-wrap: wrap; }
.ttx-head .pg { background: #000; color: #fff; padding: 0 8px; }
.ttx-title { display: flex; align-items: center; gap: 18px; padding: 18px 14px 10px; }
.ttx-blocks { display: grid; grid-template-columns: repeat(18, 12px); grid-template-rows: repeat(3, 12px); gap: 0; }
.ttx-blocks i { background: #fff; }
.ttx-blocks i.o { background: transparent; }
.ttx-blocks i.a { background: var(--acc); }
.ttx-body { padding: 10px 14px 18px; text-transform: none; }
.ttx-list { list-style: none; margin: 0; padding: 0; }
.ttx-list a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 0; text-decoration: none; border-bottom: 1px dotted var(--line-2); text-transform: uppercase; }
.ttx-list a:hover { background: #fff; color: #000; }
.ttx-list a span:last-child { color: var(--acc); }
.ttx-list a:hover span:last-child { color: #000; }
.ttx-art h2 { font: inherit; background: #fff; color: #000; display: inline-block; padding: 0 8px; margin: 6px 0 14px; text-transform: uppercase; }
.ttx-art .txt { font: 16px/1.65 var(--f-mono); color: var(--fg-2); text-transform: none; }
.ttx-art .txt h1, .ttx-art .txt h2, .ttx-art .txt h3 { font: 22px/1.2 var(--f-osd); background: none; color: var(--acc); padding: 0; text-transform: uppercase; }
.ttx-art img { filter: grayscale(1) contrast(1.2); margin: 0 0 16px; max-height: 420px; object-fit: cover; width: 100%; image-rendering: auto; }
.ttx-foot { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.ttx-foot a, .ttx-foot span { padding: 8px 4px; text-decoration: none; }
.ttx-foot :nth-child(1) { background: #fff; color: #000; }
.ttx-foot :nth-child(2) { background: var(--line-2); }
.ttx-foot :nth-child(3) { background: var(--acc); color: #000; }
.ttx-foot :nth-child(4) { background: #d4d4d8; color: #000; }
.ttx-key { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.ttx-key input { width: 4.2em; background: #000; color: #fff; border: 1px solid #fff; font: inherit; text-align: center; padding: 2px 4px; }
.ttx-art[hidden], .ttx-index[hidden] { display: none; }

/* ---------- TEKSTY PRAWNE ---------- */
.prose { max-width: 78ch; color: var(--fg-2); }
.prose h1 { font: clamp(40px, 6vw, 80px)/0.95 var(--f-disp); text-transform: uppercase; color: var(--fg); margin-bottom: 28px; }
.prose h2 { font: 24px/1.2 var(--f-osd); text-transform: uppercase; color: var(--fg); margin: 36px 0 12px; }
.prose h3 { font: 20px/1.2 var(--f-osd); text-transform: uppercase; color: var(--fg); margin: 24px 0 8px; }
.prose a { color: var(--acc); }
.prose li { margin: 4px 0; }

/* ---------- MANIFEST (terminal) ---------- */
.term { border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 40px); font: clamp(16px, 1.5vw, 19px)/1.7 var(--f-mono); color: var(--fg-2); background: var(--bg-2); position: relative; }
.term::before { content: "C:\\TYLDA> type strona_b.txt"; display: block; color: var(--dim); margin-bottom: 18px; font-size: 13px; }
.term .cur { display: inline-block; width: .6em; height: 1.1em; background: #fff; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.term .sig { margin-top: 18px; color: var(--fg); }

/* ---------- DROP (okładka kasety) ---------- */
.drop { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.drop .cover { position: relative; aspect-ratio: 1; background: var(--bg-2); }
.drop .cover img { width: 100%; height: 100%; object-fit: cover; }
.drop .cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.drop .cover .osd { position: absolute; left: 14px; bottom: 12px; font-size: 26px; }
.drop .tl { font: 15px/1.9 var(--f-mono); color: var(--fg-2); columns: 2; column-gap: 24px; margin: 20px 0 28px; padding: 0; list-style: none; counter-reset: t; }
.drop .tl li { counter-increment: t; break-inside: avoid; }
.drop .tl li::before { content: counter(t, decimal-leading-zero) "  "; color: var(--dim); }
@media (max-width: 860px) { .drop { grid-template-columns: 1fr; } .drop .tl { columns: 1; } }

/* ---------- STOPKA ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 120px; margin-top: 80px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 12px/1 var(--f-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--fg-2); }
.foot a:hover { color: var(--acc); }
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ctl { font: 20px/1 var(--f-osd); text-transform: uppercase; border: 1px solid var(--line-2); padding: 8px 12px; display: inline-flex; align-items: center; gap: 10px; }
.ctl:hover { border-color: #fff; }
.ctl input[type=range] { width: 110px; accent-color: #fff; }
.legal { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font: 12px/1.5 var(--f-mono); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WYŁĄCZ TV ---------- */
#off { position: fixed; inset: 0; z-index: 9400; background: #000; display: none; place-items: center; }
#off.on { display: grid; }
#off .dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; box-shadow: 0 0 18px 6px rgba(255,255,255,.6); animation: dotOut 2.5s ease-out forwards; }
#off p { position: absolute; bottom: 20%; font: 22px/1 var(--f-osd); color: var(--dim); text-transform: uppercase; opacity: 0; animation: fadeIn .4s 1.6s forwards; }
@keyframes dotOut { to { opacity: 0; transform: scale(.2); } }
@keyframes fadeIn { to { opacity: 1; } }
body.tv-off > *:not(#off):not(script) { animation: crtOff .4s var(--ease) forwards; }
@keyframes crtOff { 0% { transform: none; opacity: 1; } 60% { transform: scaleY(.004); opacity: 1; } 100% { transform: scale(0, .004); opacity: 0; } }

/* ---------- SEKRET (konami) ---------- */
#secret { position: fixed; inset: 0; z-index: 9600; background: #fff; color: #000; display: none; place-items: center; padding: var(--gut); text-align: center; }
#secret.on { display: grid; animation: inv .12s steps(2) 4; }
@keyframes inv { 50% { background: #000; color: #fff; } }
#secret .code { font: clamp(48px, 9vw, 120px)/1 var(--f-osd); border: 4px solid #000; padding: 10px 24px; display: inline-block; margin: 24px 0; letter-spacing: .08em; }
#secret .btn { box-shadow: 4px 4px 0 var(--acc); background: #000; color: #fff; }

/* ---------- 404 ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 46vh; }
.bars i:nth-child(1) { background: #f4f4f5; } .bars i:nth-child(2) { background: #d4d4d8; } .bars i:nth-child(3) { background: #9c9ca3; }
.bars i:nth-child(4) { background: var(--acc); } .bars i:nth-child(5) { background: #6b6b75; } .bars i:nth-child(6) { background: #3d3d47; } .bars i:nth-child(7) { background: #14141a; }

/* ---------- TOAST ---------- */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 8800; background: #fff; color: #000; font: 24px/1 var(--f-osd); text-transform: uppercase; padding: 12px 18px; box-shadow: 4px 4px 0 var(--acc); opacity: 0; pointer-events: none; transition: opacity .14s, transform .14s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal przy przewijaniu ---------- */
.rv { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #fx canvas, #fx .track { display: none; }
  .rv { opacity: 1; transform: none; }
  .ticker > div { padding-left: 0; }
}

/* ---------- BOOT: pełny VHS ---------- */
#boot { overflow: hidden; }
#boot .b-noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; image-rendering: pixelated; pointer-events: none; will-change: opacity; }
#boot .b-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.55) 2px 4px); }
#boot .b-scan::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.75) 100%); }
#boot .b-roll { position: absolute; left: 0; right: 0; height: 18vh; top: 0; transform: translateY(-20vh); will-change: transform; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.05) 25%, rgba(255,255,255,.22) 48%, rgba(55,170,225,.12) 52%, rgba(255,255,255,.04) 75%, transparent);
  animation: bRoll 3.4s linear infinite; }
@keyframes bRoll { 0% { transform: translateY(-20vh); } 70%, 100% { transform: translateY(110vh); } }
#boot .b-in { position: relative; animation: bJit 5s steps(1) infinite; will-change: transform; }
#boot .b-in .scr, #boot .b-in .start { text-shadow: -2px 0 rgba(55,170,225,.85), 2px 0 rgba(255,106,31,.6), 0 0 8px rgba(255,255,255,.45); }
#boot .logo { filter: drop-shadow(-3px 0 rgba(55,170,225,.75)) drop-shadow(3px 0 rgba(255,106,31,.5)); animation: bLogo 2.6s steps(1) infinite; }
@keyframes bJit {
  0%, 9%, 11%, 46%, 48%, 77%, 79%, 100% { transform: none; opacity: 1; }
  10% { transform: translate(-7px, 1px) skewX(-6deg); }
  47% { transform: translate(5px, -2px); opacity: .75; }
  78% { transform: translate(-3px, 3px) skewX(4deg); }
}
@keyframes bLogo { 0%, 60%, 64%, 100% { transform: none; opacity: 1; } 61% { transform: translateX(6px) skewX(10deg); opacity: .7; } 63% { transform: translateX(-4px); opacity: .9; } }
#boot .b-glitch { position: relative; display: inline-block; }
#boot .b-glitch::before, #boot .b-glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
#boot .b-glitch::before { color: var(--acc); clip-path: inset(0 0 65% 0); animation: bG1 1.9s steps(2) infinite; }
#boot .b-glitch::after { color: #fff; clip-path: inset(60% 0 0 0); animation: bG2 2.3s steps(2) infinite; }
@keyframes bG1 { 0%, 80%, 100% { transform: none; opacity: 0; } 82% { transform: translateX(-8px); opacity: 1; } 88% { transform: translateX(6px); clip-path: inset(30% 0 40% 0); opacity: 1; } 94% { opacity: 0; } }
@keyframes bG2 { 0%, 70%, 100% { transform: none; opacity: 0; } 72% { transform: translateX(9px); opacity: 1; } 78% { transform: translateX(-5px); clip-path: inset(75% 0 5% 0); opacity: 1; } 84% { opacity: 0; } }
#boot .b-osd { position: absolute; top: 18px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; font-size: clamp(20px, 2.4vw, 30px); text-shadow: var(--osd-glow); pointer-events: none; }
#boot .b-osd b { font-weight: 400; }
#boot .b-trk { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: center; font-size: clamp(18px, 2vw, 24px); color: var(--fg-2); pointer-events: none; }
#boot .b-trk i { width: 10px; height: 16px; background: #fff; opacity: .2; animation: bTrk 1.6s steps(1) infinite; }
#boot .b-trk i:nth-child(1) { animation-delay: 0s; } #boot .b-trk i:nth-child(2) { animation-delay: .1s; } #boot .b-trk i:nth-child(3) { animation-delay: .2s; }
#boot .b-trk i:nth-child(4) { animation-delay: .3s; } #boot .b-trk i:nth-child(5) { animation-delay: .4s; } #boot .b-trk i:nth-child(6) { animation-delay: .5s; }
#boot .b-trk i:nth-child(7) { animation-delay: .6s; } #boot .b-trk i:nth-child(8) { animation-delay: .7s; }
@keyframes bTrk { 0% { opacity: .2; } 30%, 60% { opacity: 1; } }
#boot.tear .b-in { transform: translateX(14px) skewX(-12deg); }
#boot.tear .b-noise { opacity: .45; }

/* ---------- KONTO KLIENTA ---------- */
.card-link { border-color: transparent; color: var(--mute); }
.card-link:hover { color: #fff; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 40px; }
.acc-name { font-size: clamp(32px, 4.4vw, 56px); margin: 0; line-height: .95; }
.acc-mail { font-size: 13px; margin: 8px 0 0; }
.acc-stats { display: flex; gap: 2px; margin: 0; }
.acc-stats div { background: var(--bg-2); padding: 12px 18px; min-width: 120px; }
.acc-stats dt { font: 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.acc-stats dd { margin: 4px 0 0; font-size: 34px; line-height: 1; }
.acc-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-orders { list-style: none; padding: 0; margin: 0; counter-reset: tr; }
.mission { counter-increment: tr; display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px dotted var(--line-2); }
.mission::before { content: counter(tr, decimal-leading-zero); font: 24px/1 var(--f-osd); color: var(--dim); grid-row: span 3; }
.mission .top-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.mission .no { font: 22px/1 var(--f-osd); }
.mission .its { font: 14px/1.6 var(--f-body); color: var(--fg); text-transform: uppercase; font-weight: 500; }
.mission .meta { font: 12px/1.5 var(--f-mono); color: var(--mute); }
.mstat { font: 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; }
.mstat.oplacone, .mstat.spakowane { color: var(--acc); } .mstat.wyslane { color: #4ade80; } .mstat.zrealizowane { color: var(--mute); } .mstat.anulowane, .mstat.zwrocone { color: var(--acc-2); }
.code-in { font: 40px/1 var(--f-osd) !important; letter-spacing: .5em; text-align: center; }
.bag-link .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 20px; }
.bag-link:hover .ico { stroke: var(--acc); }

/* ---------- rangi ---------- */
.rank { border: 1px solid var(--line-2); padding: clamp(18px, 3vw, 28px); margin: -16px 0 48px; max-width: 760px; }
.rank-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rank-name { font-size: clamp(36px, 5vw, 64px); margin: 4px 0 0; line-height: .9; }
.rank-disc { font-size: clamp(28px, 3.4vw, 44px); color: var(--acc); margin: 0; }
.rank-bar { height: 12px; background: var(--bg-3); margin: 18px 0 8px; }
.rank-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 8px); transition: width 1.1s var(--ease); }
.rank-next { font-size: 13px; color: var(--fg-2); margin: 0 0 18px; }
.rank-ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.rank-ladder li { background: var(--bg-2); padding: 10px; font: 12px/1.4 var(--f-mono); color: var(--dim); }
.rank-ladder li b { display: block; font: 20px/1 var(--f-osd); color: var(--mute); }
.rank-ladder li.done b { color: var(--fg); }
.rank-ladder li.now { outline: 1px solid var(--acc); outline-offset: -1px; }
.rank-ladder li.now b { color: var(--acc); }
@media (max-width: 640px) { .rank-ladder { grid-template-columns: 1fr 1fr; } }
.disc-note { font-size: 12px; color: var(--mute); margin: -4px 0 8px; min-height: 1em; }
.disc-note.ok { color: var(--acc); } .disc-note.bad { color: var(--acc-2); }

/* ---------- konto w plecaku / po zakupie ---------- */
.acc-box { border: 1px solid var(--acc); padding: 14px; margin-bottom: 22px; background: rgba(55,170,225,.05); }
.acc-t { font: 22px/1.1 var(--f-osd); margin: 0 0 6px; }
.acc-perks { font-size: 12px; color: var(--fg-2); margin: 0 0 10px; }
.acc-box form { display: flex; gap: 6px; margin-bottom: 6px; }
.acc-box input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); color: #fff; padding: 9px 10px; font: 14px var(--f-mono); }
.btn.sm { font-size: 18px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--acc); }
.code-in.sm { font-size: 22px !important; letter-spacing: .4em; }
.acc-in { margin: 0; font-size: 13px; color: var(--fg-2); }
.acc-in b { color: var(--acc); font-weight: 500; }
.point-card { border: 1px solid var(--acc); padding: 10px 12px; font: 13px/1.5 var(--f-mono); color: var(--fg-2); }
.point-card b { font: 22px/1 var(--f-osd); color: #fff; display: block; margin-bottom: 4px; }

/* ---------- mapa InPost ---------- */
#ipm { position: fixed; inset: 0; z-index: 9700; background: rgba(0,0,0,.85); display: none; padding: 3vh 3vw; }
#ipm.on { display: grid; place-items: center; }
.ipm-box { width: min(1100px, 100%); height: min(760px, 94vh); background: #000; border: 1px solid var(--line-2); display: grid; grid-template-rows: auto auto 1fr auto; box-shadow: 6px 6px 0 var(--acc); }
.ipm-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 24px; }
.ipm-x { font-size: 22px; padding: 4px 8px; }
.ipm-x:hover { color: var(--acc); }
.ipm-search { display: flex; gap: 6px; padding: 12px 16px; }
.ipm-search input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); color: #fff; padding: 10px 12px; font: 15px var(--f-mono); }
.ipm-search .btn { padding: 10px 16px; font-size: 20px; box-shadow: none; }
.ipm-main { display: grid; grid-template-columns: 1fr 320px; min-height: 0; border-top: 1px solid var(--line); }
.ipm-map { min-height: 240px; background: #111; }
.ipm-map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.85) brightness(.9); }
.ipm-map .leaflet-control-attribution { background: rgba(0,0,0,.7); color: var(--dim); font: 10px var(--f-mono); }
.ipm-map .leaflet-control-attribution a { color: var(--mute); }
.ipm-map .leaflet-bar a { background: #000; color: #fff; border-color: var(--line-2); }
.ipm-pin i { display: block; width: 14px; height: 14px; background: #fff; border: 2px solid #000; box-shadow: 0 0 0 1px #fff; }
.ipm-pin.on i, .ipm-pin:hover i { background: var(--acc); }
.ipm-pop .leaflet-popup-content-wrapper { background: #000; color: #fff; border: 1px solid var(--acc); border-radius: 0; font: 13px/1.5 var(--f-mono); }
.ipm-pop .leaflet-popup-content b { font: 22px var(--f-osd); }
.ipm-pop .leaflet-popup-tip { background: var(--acc); }
.ipm-pop .btn { margin-top: 8px; font-size: 18px; padding: 8px 12px; }
.ipm-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border-left: 1px solid var(--line); }
.ipm-list button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ipm-list button:hover { background: var(--bg-3); }
.ipm-list b { font: 20px/1 var(--f-osd); }
.ipm-list span { font: 13px var(--f-body); color: var(--fg-2); }
.ipm-list small { font: 11px var(--f-mono); color: var(--dim); }
.ipm-status { padding: 8px 16px; margin: 0; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  #ipm { padding: 0; }
  .ipm-box { height: 100%; box-shadow: none; border: 0; }
  .ipm-main { grid-template-columns: 1fr; grid-template-rows: 55% 45%; }
  .ipm-list { border-left: 0; border-top: 1px solid var(--line); }
}

.buyer { margin-bottom: 18px; }
.buyer .field { margin: 8px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr !important; } }
.buyer input.bad { border-color: var(--acc-2); }
