:root{box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0}img{max-width:100%}[hidden]{display:none!important}
/* Layout: jeden ekran jak automat w salonie. Menu to trzy kasety-kartridże, gra zajmuje całe płótno. */
:root {
  --bg: #030409;
  --panel: #090b12;
  --key: #10131c;
  --line: #ffffff1c;
  --fg: #ffffff;
  --muted: #b3bac6;
  --cy: #22d3ee;
  --pk: #ec4899;
  --am: #f59e0b;
  --gr: #22c55e;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --led: "VT323", "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
html, body { height: 100%; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 16px; overflow: hidden; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--cy); outline-offset: 2px; }

.menu { height: 100%; overflow-y: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 48px; box-sizing: border-box; }
.menu-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.head { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--cy); margin: 0; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 76px); line-height: 0.98; font-weight: 800; font-style: italic; letter-spacing: -0.03em; text-wrap: balance; }
.grad { background: linear-gradient(135deg, var(--cy), #a855f7, var(--pk)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; line-height: 1.5; }

.shelf { display: flex; flex-direction: column; gap: 14px; }
.shelf-title { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); font-weight: 700; }
.shelf-title b { color: var(--fg); font-weight: 700; }
.carts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.cart { --c: var(--cy); display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--c); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 0 #000, 0 0 30px -12px var(--c); }
.cart[data-c="pk"] { --c: var(--pk); }
.cart[data-c="am"] { --c: var(--am); }
.cart[data-c="pu"] { --c: #a855f7; }
.cart[data-c="gr"] { --c: var(--gr); }
.cart[data-c="rd"] { --c: #ef4444; }
.cart-screen { position: relative; margin: 14px 14px 0; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #010206; }
.cart-screen .shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-screen .host { position: absolute; right: 6px; bottom: 2px; height: 72px; width: auto; filter: drop-shadow(0 4px 10px #000); }
.cart-label { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 3px 10px; }
.cart h2 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; font-style: italic; letter-spacing: -0.01em; }
.cart p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0 0; font-size: 13px; }
.facts dt { font-family: var(--mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; padding-top: 2px; }
.facts dd { margin: 0; }
.best { font-family: var(--led); font-size: 22px; line-height: 1; color: var(--am); }
.play-btn { margin-top: auto; min-height: 50px; display: grid; place-items: center; text-decoration: none; border: 0; border-radius: 12px; background: var(--c); color: var(--bg); font-weight: 800; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 0 #000; }
.play-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }

.cart-soon { border-style: dashed; box-shadow: 0 6px 0 #000; }
.soon-screen { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #ffffff0a, #01020600 70%), #010206; }
.soon-hero { height: 70%; width: auto; opacity: 0.45; }
.soon-btn { background: transparent; color: var(--muted); border: 1px dashed var(--line); box-shadow: none; font-size: 13px; }
.soon { display: flex; flex-direction: column; gap: 14px; }
.soon h3, .foot h3 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); font-weight: 700; }
.soon-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.soon-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.soon-item img { height: 70px; width: auto; opacity: 0.55; }
.soon-item b { font-size: 14px; }
.soon-item span { font-size: 12px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-top: 1px dashed var(--line); padding-top: 18px; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.foot a { color: var(--cy); }
.key { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--key); box-shadow: 0 4px 0 #000; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.key[aria-pressed="true"] { border-color: var(--gr); color: var(--gr); }

#play { position: fixed; inset: 0; background: var(--bg); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#cv { position: absolute; top: env(safe-area-inset-top, 0px); left: env(safe-area-inset-left, 0px); width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.topbar { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; pointer-events: none; }
.topbar .key { pointer-events: auto; min-height: 40px; padding: 0 12px; }
.pads { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.pads .grp { display: flex; gap: 14px; }
.pad { pointer-events: auto; width: 74px; height: 74px; padding: 0; border: 0; background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pad img { width: 100%; height: 100%; pointer-events: none; }
.pad.on { transform: scale(0.92); }
.overlay { position: absolute; inset: 0; display: flex; touch-action: pan-y; -webkit-overflow-scrolling: touch; background: #030409d9; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px; overflow-y: auto; }
.ov-card { width: 100%; max-width: 460px; margin: auto; box-sizing: border-box; background: var(--panel); border: 2px solid var(--cy); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 0 #000, 0 0 40px -14px var(--cy); }
.ov-card h2 { margin: 0; font-size: 32px; line-height: 1.05; font-weight: 800; font-style: italic; text-wrap: balance; }
.ov-text { margin: 0; color: var(--muted); line-height: 1.5; }
.ov-text b { color: var(--fg); }
.ov-extra:empty { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: #010206; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.stat b { font-family: var(--led); font-size: 30px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 6px; }
.stars img { width: 40px; height: 40px; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.lvl { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--key); font-size: 14px; font-weight: 600; }
.lvl[aria-pressed="true"] { border-color: var(--pk); color: var(--pk); }
.lvl:disabled { opacity: 0.4; cursor: not-allowed; }
.ov-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ov-btns .main { flex: 1 1 160px; min-height: 50px; border: 0; border-radius: 12px; background: var(--cy); color: var(--bg); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 4px 0 #000; }
.ov-btns .key { flex: 0 1 auto; }
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tally img { width: 26px; height: 26px; }
.tally b { font-family: var(--led); font-size: 28px; line-height: 1; font-weight: 400; color: var(--am); }
.tally-bar { flex: 1 1 140px; max-width: 280px; height: 8px; border-radius: 99px; background: #ffffff14; overflow: hidden; }
.tally-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cy), #a855f7, var(--pk)); }
.ranking { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.ranking b { color: var(--fg); }
.ranking .me { color: var(--am); }
#pad-b img { transform: rotate(90deg); }
@media (max-height: 500px) {
  .ov-card { max-width: 640px; padding: 14px 18px; gap: 8px; }
  .ov-card h2 { font-size: 24px; }
  .ov-text { font-size: 14px; line-height: 1.35; }
  .stat b { font-size: 24px; }
  .stars img { width: 30px; height: 30px; }
  .pad { width: 64px; height: 64px; }
  .pads { bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
}
@media (prefers-reduced-motion: reduce) { .play-btn:active, .pad.on { transform: none; } }
