@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: #FF6A1A;
  --pick: #FF7A1F;
  --glass: rgba(11, 13, 18, .72);
  --glass-line: rgba(255, 255, 255, .09);
  --text: #F3F4F6;
  --muted: #9AA0AB;
  --ok: #4ADE80;
  --low: #FBBF24;
  --none: #F87171;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #05070d; overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%); }

/* szklane elementy */
#brand, #crumb, #back, #hint, #legend, #card, #sheet, .match-tag { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
#brand { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 10px; padding: 7px 15px 7px 8px; border-radius: 999px; pointer-events: none; }
#brand img { width: 30px; height: 30px; object-fit: contain; }
#brand div { display: flex; flex-direction: column; line-height: 1.15; }
#brand strong { font-size: 13px; font-weight: 600; }
#brand span { font-size: 11px; color: var(--muted); }
#crumb { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 550; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
#crumb i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
#back { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 550; transition: transform .2s var(--ease), background .2s; }
#back svg { width: 16px; height: 16px; }
#back:hover { background: rgba(30, 34, 44, .85); transform: translateX(-2px); }
#hint { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); margin: 0; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
#hint.in { opacity: 1; transform: translate(-50%, 0); }
#legend { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; gap: 14px; margin: 0; padding: 9px 14px; border-radius: 999px; list-style: none; font-size: 11.5px; font-weight: 500; color: #D5D8DE; pointer-events: none; }
#legend li { display: inline-flex; align-items: center; gap: 6px; }
#legend i { width: 9px; height: 9px; border-radius: 3px; }
#legend .free { background: #F4F5F7; }
#legend .taken { background: #3A4152; }
#legend .pick { background: var(--pick); box-shadow: 0 0 8px var(--pick); }
#app[data-loading] #brand, #app[data-loading] #crumb, #app.no-ui > *:not(#gl):not(#vignette):not(#loader) { opacity: 0; pointer-events: none; }

/* karta przy kursorze */
.eyebrow { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
#card { position: absolute; left: 0; top: 0; display: flex; align-items: stretch; border-radius: 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .14s ease; z-index: 5; will-change: transform; }
#card.in { opacity: 1; }
.card-main { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 16px 10px 14px; }
.card-main strong { font-size: 16px; font-weight: 620; letter-spacing: -.012em; line-height: 1.15; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 550; color: var(--muted); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status em { font-style: normal; }
.status.ok { color: var(--ok); }
.status.low { color: var(--low); }
.status.low i { background: var(--low); }
.status.none { color: var(--none); }
.status.none i { background: var(--none); }
.status.info i { background: var(--muted); }
.card-price { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px; padding: 10px 15px; border-left: 1px solid var(--glass-line); min-width: 64px; }
.card-price strong { font-size: 18px; font-weight: 680; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.card-price.muted strong { color: #6B7280; }

/* panel miejsca */
#sheet { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(1060px, calc(100% - 28px)); padding: 16px 18px 18px; border-radius: 24px; background: rgba(10, 12, 17, .86); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, 28px); transition: opacity .4s ease, transform .55s var(--ease); z-index: 6; }
#sheet.in { opacity: 1; transform: translate(-50%, 0); }
.sheet-handle { display: block; width: 64px; height: 16px; margin: -8px auto 4px; }
.sheet-handle i { display: block; width: 40px; height: 4px; margin: 6px auto; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: background .2s; }
.sheet-handle:hover i { background: rgba(255, 255, 255, .45); }
.sheet-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; gap: 18px; align-items: stretch; }
#sheet.no-shot .sheet-grid { grid-template-columns: minmax(0, 1fr) 250px; }
.shot { position: relative; display: block; border-radius: 16px; overflow: hidden; min-height: 150px; background: #111; box-shadow: 0 0 0 1px var(--glass-line); text-align: left; transition: transform .25s var(--ease), box-shadow .25s; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 58%); }
.shot:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5), 0 12px 30px rgba(0, 0, 0, .45); }
.shot:hover img { transform: scale(1.06); }
.shot-tag { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(8, 10, 14, .7); font-size: 11px; font-weight: 600; }
.shot-tag i { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 8px #EF4444; }
.shot-cta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.shot-cta svg { width: 13px; height: 13px; flex: none; }
.info { display: flex; flex-direction: column; min-width: 0; padding: 2px 0; }
.badges { display: flex; align-items: center; gap: 8px; }
.badges .eyebrow { display: inline; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.badge.ok { background: rgba(74, 222, 128, .14); color: var(--ok); }
.badge.ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge.vip { background: linear-gradient(135deg, #F4DC9C, #D4A63C); color: #1B1405; letter-spacing: .08em; }
.info h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 660; letter-spacing: -.028em; line-height: 1.12; }
.lead { margin: 0; font-size: 13.5px; color: #C4C8D0; }
.facts { display: flex; gap: 8px; margin: auto 0 0; padding: 12px 0 0; list-style: none; }
.facts li { flex: 1; padding: 8px 11px; border-radius: 12px; background: rgba(255, 255, 255, .055); border: 1px solid var(--glass-line); }
.facts strong { display: block; font-size: 17px; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.scarce { margin: 10px 0 0; font-size: 12.5px; font-weight: 550; color: var(--ok); }
.scarce.low { color: var(--low); }
.buy { display: flex; flex-direction: column; align-items: stretch; padding: 14px 16px 12px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 0; }
.price strong { font-size: 46px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 18px; font-weight: 600; color: #C4C8D0; }
.price-note { margin: 4px 0 auto; padding-bottom: 12px; font-size: 12px; color: var(--muted); }
.buy .btn.primary { margin: 0; width: 100%; height: 52px; font-size: 15.5px; font-weight: 660; }
.link { margin-top: 9px; font-size: 12.5px; font-weight: 550; color: var(--muted); text-align: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: color .15s, text-decoration-color .15s; }
.link:hover { color: #fff; text-decoration-color: currentColor; }
.upsell { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; margin-top: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: linear-gradient(100deg, rgba(212, 166, 60, .2), rgba(212, 166, 60, .05) 60%); border: 1px solid rgba(232, 196, 110, .45); }
.upsell img { width: 112px; height: 66px; border-radius: 11px; object-fit: cover; display: block; }
.up-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-text .eyebrow { color: #E9C97A; }
.up-text strong { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.up-text span:last-child { font-size: 12.5px; color: #C4C8D0; }
.up-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.up-price strong { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: #F1D48B; font-variant-numeric: tabular-nums; }
.up-price span { font-size: 11.5px; color: var(--muted); }
.btn.gold { background: linear-gradient(135deg, #F4DC9C, #D4A63C); color: #1B1405; box-shadow: 0 8px 22px rgba(212, 166, 60, .3); }
.btn.gold:hover { filter: brightness(1.06); }
.return { display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 580; text-align: center; transition: background .18s; }
.return:hover { background: rgba(255, 255, 255, .12); }
#sheet.mini .shot, #sheet.mini .lead, #sheet.mini .facts, #sheet.mini .scarce, #sheet.mini .upsell, #sheet.mini .return, #sheet.mini .link, #sheet.mini .price-note, #sheet.mini .buy > .eyebrow { display: none; }
#sheet.mini .sheet-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
#sheet.mini .buy { flex-direction: row; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; }
#sheet.mini .price strong { font-size: 30px; }
#sheet.mini .buy .btn.primary { width: auto; padding: 0 22px; }
#sheet.mini .info h2 { font-size: 20px; margin-bottom: 0; }
.shot:focus-visible, .link:focus-visible, .return:focus-visible, .sheet-handle:focus-visible { outline: 2px solid var(--pick); outline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 620; white-space: nowrap; transition: transform .18s var(--ease), filter .18s, background .18s; }
.btn svg { width: 11px; height: 11px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--glass-line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .13); }
.btn.primary { background: var(--accent); color: #fff; margin-left: auto; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.light { background: #fff; color: #111318; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.btn:focus-visible, #back:focus-visible { outline: 2px solid var(--pick); outline-offset: 3px; }

/* dzien meczowy */
#match { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .7s ease; z-index: 7; }
#match.in { opacity: 1; }
#match video, #match img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#match { overflow: hidden; }
#match img { animation: drift 18s ease-in-out infinite alternate; transform-origin: 50% 62%; will-change: transform; }
@keyframes drift { from { transform: scale(1.02) translate3d(-0.6%, 0.3%, 0); } to { transform: scale(1.12) translate3d(0.8%, -0.6%, 0); } }
@media (prefers-reduced-motion: reduce) { #match img { animation: none; } }
.match-tag { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.match-tag i { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 10px #EF4444; animation: blink 1.6s ease-in-out infinite; }
#match .btn { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); }
#match .btn:hover { transform: translateX(-50%) translateY(-1px); }
@keyframes blink { 50% { opacity: .35; } }

#done { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 13, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s ease; z-index: 9; }
#done.in { opacity: 1; }
.done-box { width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 22px; background: #fff; color: #14161A; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: translateY(14px); transition: transform .5s var(--ease); }
#done.in .done-box { transform: none; }
.done-box svg { width: 52px; height: 52px; color: #2FA864; }
.done-box h2 { margin: 14px 0 6px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.done-box p { margin: 0; font-size: 15px; font-weight: 550; }
.done-box .note { margin: 10px 0 22px; font-size: 12.5px; font-weight: 450; color: #8B9099; line-height: 1.45; }
.done-box .btn { margin: 0 auto; }

#toast { position: absolute; left: 50%; bottom: max(80px, calc(env(safe-area-inset-bottom) + 72px)); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px; background: rgba(12, 14, 18, .92); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 500; text-align: center; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; z-index: 10; }
#toast.in { opacity: 1; transform: translate(-50%, 0); }

#loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #05070d; opacity: 0; pointer-events: none; transition: opacity .8s ease; z-index: 20; }
#app[data-loading] #loader { opacity: 1; pointer-events: auto; }
#loader span { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .16); border-top-color: var(--accent); animation: spin .8s linear infinite; }
#loader p { margin: 0; font-size: 13px; font-weight: 500; opacity: .7; }
.bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  #brand span { display: none; }
  #crumb { top: auto; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 52px); font-size: 12px; }
  #app[data-mode="seat"] #crumb { display: none; }
  #hint { font-size: 12.5px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
  #legend { left: 50%; transform: translateX(-50%); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 100px); }
  #sheet { padding: 12px 12px 14px; border-radius: 22px; width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .sheet-grid, #sheet.no-shot .sheet-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .info { order: 1; }
  .shot { order: 2; min-height: 84px; }
  .buy { order: 3; flex-direction: row; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; }
  .buy > .eyebrow, .price-note, .link, .lead { display: none; }
  .price strong { font-size: 30px; }
  .price span { font-size: 14px; }
  .buy .btn.primary { flex: 1; width: auto; height: 48px; font-size: 14.5px; padding: 0 12px; }
  .info h2 { font-size: 19px; margin: 6px 0 0; }
  .facts { padding-top: 8px; gap: 6px; }
  .facts li { padding: 6px 8px; }
  .facts strong { font-size: 14px; }
  .facts span { font-size: 9.5px; }
  .scarce { margin-top: 7px; font-size: 12px; }
  .upsell { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; padding: 8px 10px 8px 8px; }
  .upsell img { width: 64px; height: 48px; }
  .up-text strong { font-size: 15px; }
  .up-text span:last-child { display: none; }
  .up-price { grid-column: 3; grid-row: 1; }
  .up-price strong { font-size: 17px; }
  .upsell .btn { grid-column: 1 / -1; height: 40px; }
  .return { margin-top: 10px; padding: 10px; font-size: 12.5px; }
  .btn { height: 42px; padding: 0 14px; font-size: 13px; }
  #sheet.mini .sheet-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #sheet.mini .buy { padding: 6px 6px 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { #sheet, #hint, #card { transition-duration: .01s; } }
