/* ==========================================================================
   Zabawa Droszków – strona publiczna
   Motywy: [data-theme="droszkow|bal|zima|jesien|lato"] – zmienne poniżej.
   Motyw można ustawić na <html> (cała strona) lub na pojedynczej karcie.
   ========================================================================== */

:root,
[data-theme="droszkow"] {
  /* Identyfikacja wizualna Sołectwa Droszków – https://www.droszkow.pl/brand
     Niebo #C1D6C8 · Słońce #CFA311 · Wzgórze jasne #AEAD53 · Wzgórze ciemne #868F34
     Wieża jasna #EDECD5 · Wieża ciemna #C5B79A · Dach jasny #8E866D · Dach ciemny #7D7252 */
  --font-display: 'Source Sans 3', system-ui, sans-serif; --display-weight: 700; --display-tracking: -.015em;
  --hero-accent: #e9c94a;
  --bg: #f4f3e6;        --bg-2: #EDECD5;
  --surface: #fffef8;   --surface-2: #f6f5ea;
  --ink: #2e2a1e;       --ink-2: #555038;   --muted: #7D7252;
  --line: #ddd6bf;
  --accent: #6b7328;    --accent-ink: #ffffff; --accent-soft: #e9eed9;   /* Wzgórze ciemne, przyciemnione dla kontrastu tekstu (AA) */
  --accent-2: #CFA311;  --accent-2-ink: #2e2a1e;                          /* Słońce */
  --hero-a: #3f4519;    --hero-b: #868F34;                                /* Wzgórze ciemne */
  --table: #7D7252;                                                       /* Dach ciemny */
  --seat-free: #fffef8; --seat-free-line: #C5B79A; --seat-free-ink: #555038;
  --seat-taken: #e2dcc6; --seat-taken-ink: #a49a7c;
  --seat-sel: #CFA311;  --seat-sel-ink: #2e2a1e;
  --sky: #C1D6C8;
  --danger: #a31b1b;    --warn: #b06a00;    --ok: #5f6a22;
  --shadow: 0 1px 2px rgba(60,50,20,.05), 0 8px 24px -12px rgba(60,50,20,.2);
}
[data-theme="bal"], [data-theme="zima"], [data-theme="jesien"], [data-theme="lato"] {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif; --display-weight: 700; --display-tracking: -.02em;
}
[data-theme="bal"] {
  --hero-accent: #e8d39a;
  --bg: #0d1220;        --bg-2: #121a2e;
  --surface: #151c2f;   --surface-2: #1b2440;
  --ink: #f3eee2;       --ink-2: #c9c3b5;   --muted: #8f8a80;
  --line: #2a3352;
  --accent: #d6b25e;    --accent-ink: #1a1406; --accent-soft: #2b2a2a;
  --accent-2: #e8d39a;  --accent-2-ink: #1a1406;
  --hero-a: #070a14;    --hero-b: #25305a;
  --table: #5a4430;
  --seat-free: #1f2945; --seat-free-line: #46527a; --seat-free-ink: #c9c3b5;
  --seat-taken: #262c42; --seat-taken-ink: #5d6483;
  --seat-sel: #d6b25e;  --seat-sel-ink: #1a1406;
  --danger: #ff7a7a;    --warn: #f2b45a;    --ok: #8fd6a6;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 36px -14px rgba(0,0,0,.7);
}
[data-theme="zima"] {
  --hero-accent: #f6d38a;
  --bg: #f8f3f0;        --bg-2: #f0e6e1;
  --surface: #ffffff;   --surface-2: #fbf6f4;
  --ink: #2a1a1b;       --ink-2: #5a4446;   --muted: #8c7a7b;
  --line: #ecdcd7;
  --accent: #b3262d;    --accent-ink: #ffffff; --accent-soft: #f8e3e3;
  --accent-2: #2f6b47;  --accent-2-ink: #ffffff;
  --hero-a: #5e0f14;    --hero-b: #b3262d;
  --table: #7a4b3a;
  --seat-free: #ffffff; --seat-free-line: #d9c6c2; --seat-free-ink: #5a4446;
  --seat-taken: #e8dedb; --seat-taken-ink: #b09e9b;
  --seat-sel: #2f6b47;  --seat-sel-ink: #ffffff;
  --danger: #b3262d;    --warn: #c06d00;    --ok: #2f6b47;
  --shadow: 0 1px 2px rgba(60,10,10,.05), 0 8px 24px -12px rgba(60,10,10,.2);
}
[data-theme="jesien"] {
  --hero-accent: #f3c27a;
  --bg: #f6ede1;        --bg-2: #efe0cc;
  --surface: #fffaf3;   --surface-2: #f9f0e4;
  --ink: #2b2018;       --ink-2: #5b4a3d;   --muted: #8b7a6c;
  --line: #e9d8c2;
  --accent: #b4532a;    --accent-ink: #ffffff; --accent-soft: #f6e1d6;
  --accent-2: #6b7a3a;  --accent-2-ink: #ffffff;
  --hero-a: #4a2210;    --hero-b: #b4532a;
  --table: #6b4a2e;
  --seat-free: #fffaf3; --seat-free-line: #d8c4ab; --seat-free-ink: #5b4a3d;
  --seat-taken: #e6d8c6; --seat-taken-ink: #ab9984;
  --seat-sel: #e09b2d;  --seat-sel-ink: #2b2018;
  --danger: #a31b1b;    --warn: #b4532a;    --ok: #556b2f;
  --shadow: 0 1px 2px rgba(60,30,10,.05), 0 8px 24px -12px rgba(60,30,10,.2);
}
[data-theme="lato"] {
  --hero-accent: #ffd76a;
  --bg: #eef6fb;        --bg-2: #e2eff8;
  --surface: #ffffff;   --surface-2: #f5fafd;
  --ink: #13293d;       --ink-2: #3f5568;   --muted: #7a8b99;
  --line: #d6e6f1;
  --accent: #1f6fb2;    --accent-ink: #ffffff; --accent-soft: #dfedf8;
  --accent-2: #f2b632;  --accent-2-ink: #13293d;
  --hero-a: #0f3f6b;    --hero-b: #1f8ad0;
  --table: #8a6a48;
  --seat-free: #ffffff; --seat-free-line: #bfd3e3; --seat-free-ink: #3f5568;
  --seat-taken: #dde8f0; --seat-taken-ink: #9db0c0;
  --seat-sel: #f2b632;  --seat-sel-ink: #13293d;
  --danger: #c0392b;    --warn: #c06d00;    --ok: #1e8a4c;
  --shadow: 0 1px 2px rgba(10,40,70,.05), 0 8px 24px -12px rgba(10,40,70,.2);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.display { font-family: var(--font-display); letter-spacing: var(--display-tracking); }
.wrap-x { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pasek górny ---------- */
.topbar { position: relative; z-index: 5; }
.topbar .wrap-x { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.brand b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; line-height: 1.1; }
.brand span { font-size: .78rem; opacity: .8; }
.topbar a.link { color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .9; }
.topbar a.link:hover { opacity: 1; text-decoration: underline; }
.on-hero { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  padding-bottom: 72px;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(2px) saturate(1.1); transform: scale(1.06); }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 380px at 85% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
}
.hero > * { position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 24px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--hero-accent);
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; margin: 14px 0 16px; letter-spacing: var(--display-tracking); }
.hero p.lead { font-size: 1.08rem; max-width: 540px; opacity: .9; margin: 0 0 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
  font-weight: 600; font-size: .9rem; color: #fff;
}
.chip svg { width: 16px; height: 16px; opacity: .85; }
.hero__img { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); aspect-ratio: 16/10; background: rgba(255,255,255,.08); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; text-transform: none;
  padding: 14px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.btn--gold { background: var(--accent-2); color: var(--accent-2-ink); }
.btn--ghost { background: transparent; color: var(--ink-2); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); filter: none; }
.btn--block { width: 100%; }
.btn--light { background: #fff; color: #1b1b1b; }

/* rozmiary ikon w treści */
.btn svg { width: 20px; height: 20px; flex: none; }
.regulamin svg, .voucher strong svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; display: inline-block; }
.empty > svg { width: 40px; height: 40px; margin: 0 auto; }
.topbar .link .short { display: none; }

/* licznik do wydarzenia */
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px 8px; text-align: center; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); }
.countdown b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }

/* fala pod hero */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; color: var(--bg); z-index: 1; }
.hero__wave svg { width: 100%; height: 100%; display: block; }

/* ---------- Sekcje ---------- */
.section { padding: 36px 0 56px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section__head p { margin: 4px 0 0; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card__pad { padding: 22px; }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; }
.note svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.note--danger { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); color: var(--ink); }
.note--danger svg { color: var(--danger); }

/* ---------- Lista wydarzeń (strona główna) ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ev {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ev:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(0,0,0,.35); }
.ev__img { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); overflow: hidden; }
.ev__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.ev:hover .ev__img img { transform: scale(1.04); }
.ev__date {
  position: absolute; left: 14px; top: 14px; background: var(--surface); color: var(--ink);
  border-radius: 14px; padding: 8px 12px; text-align: center; min-width: 62px; line-height: 1;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.ev__date b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; }
.ev__date span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.ev__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ev__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; line-height: 1.2; margin: 0; }
.ev__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .88rem; }
.ev__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev__meta svg { width: 15px; height: 15px; color: var(--muted); }
.ev__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.ev__cta { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ev__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.ev:hover .ev__cta svg { transform: translateX(3px); }

/* licznik miejsc */
.meter { flex: 1; min-width: 0; }
.meter__row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.meter__row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.meter__bar { height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter--few .meter__bar span { background: var(--warn); }
.meter--few .meter__row b { color: var(--warn); }

/* etykieta na zdjęciu */
.ev-ribbon {
  position: absolute; top: 16px; right: 0; z-index: 2; white-space: nowrap; pointer-events: none;
  padding: 8px 16px 8px 14px; border-radius: 999px 0 0 999px; color: #fff;
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.ev-ribbon::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px; }
.ev-ribbon--soldout { background: #a31b1b; }
.ev-ribbon--few { background: #e08a00; }
.ev.is-soldout .ev__img img { filter: grayscale(.85) brightness(.75); }
.ev.is-soldout .ev__cta { color: var(--muted); }

/* wyróżnione (pierwsze) wydarzenie */
.ev--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.ev--featured .ev__img { aspect-ratio: auto; min-height: 340px; }
.ev--featured .ev__body { padding: 30px 32px; gap: 18px; justify-content: center; }
.ev--featured .ev__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ev__kicker { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.5rem; margin: 10px 0 6px; color: var(--ink); }

/* ---------- Strona wydarzenia: układ ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: -40px; position: relative; z-index: 2; }
.booking__aside { position: sticky; top: 20px; }

/* plan sali */
.hall-card { padding: 22px 18px 18px; }
.hall-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px 14px; flex-wrap: wrap; }
.hall-card__head h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 2px solid transparent; }
.legend i.free { background: var(--seat-free); border-color: var(--seat-free-line); }
.legend i.taken { background: var(--seat-taken); }
.legend i.sel { background: var(--seat-sel); }

.hall {
  --seat-size: 36px; --board: 42px;
  border-radius: 16px; padding: 22px 12px 18px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
    var(--surface-2);
  border: 1px solid var(--line);
}
.stage {
  margin: 0 auto 26px; width: min(78%, 420px); padding: 12px 0; text-align: center; border-radius: 0 0 50% 50% / 0 0 26px 26px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  color: var(--accent-ink); font-weight: 800; letter-spacing: .4em; font-size: .78rem;
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.hall-cols { display: flex; justify-content: center; gap: clamp(18px, 6vw, 64px); }
.hall table { border-collapse: separate; border-spacing: 4px 3px; }
.hall td { padding: 0; }
.hall .board {
  width: var(--board); height: var(--seat-size);
  background: linear-gradient(90deg, color-mix(in srgb, var(--table) 85%, #000), var(--table), color-mix(in srgb, var(--table) 85%, #000));
}
.hall tr:first-child .board { border-radius: 8px 8px 0 0; }
.hall tr:last-child .board { border-radius: 0 0 8px 8px; }
.hall .board.border-bottom { border-bottom: 4px solid var(--surface-2); }
.exit {
  margin: 22px auto 0; width: 170px; padding: 7px 0; text-align: center; border-radius: 10px;
  border: 2px dashed var(--line); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .25em;
}

.seat {
  width: var(--seat-size); height: var(--seat-size); border-radius: 50%;
  display: inline-grid; place-items: center; user-select: none; cursor: pointer;
  background: var(--seat-free); border: 2px solid var(--seat-free-line); color: var(--seat-free-ink);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease, border-color .12s;
}
.seat:hover { transform: scale(1.12); border-color: var(--accent); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
.seat.taken { background: var(--seat-taken); border-color: transparent; color: var(--seat-taken-ink); cursor: not-allowed; transform: none; box-shadow: none; }
.seat.selected { background: var(--seat-sel); border-color: transparent; color: var(--seat-sel-ink); transform: scale(1.1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--seat-sel) 30%, transparent); }
.seat:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Widownia (rzędy krzeseł) ---------- */
.aud { overflow-x: auto; padding: 2px 4px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.aud-in { width: max-content; margin: 0 auto; display: grid; gap: 5px; }
.aud-row { display: flex; align-items: center; gap: 4px; }
.aud-lbl { width: 20px; text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); flex: none; }
.aud-gap { width: calc(var(--seat-size) * .7); flex: none; }
.hall--rows .seat { border-radius: 10px 10px 6px 6px; flex: none; }
.seat-void { width: var(--seat-size); height: var(--seat-size); flex: none; border-radius: 10px 10px 6px 6px; border: 2px dashed color-mix(in srgb, var(--ink) 12%, transparent); opacity: .7; }
.aud--m { --seat-size: 31px; }
.aud--l { --seat-size: 27px; }
.aud--l .seat { font-size: 10px; }
.hall--rows .stage { margin-bottom: 22px; }
.hall-card { min-width: 0; }
.aud-hint { display: none; text-align: center; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.hall.is-scroll .aud-hint { display: block; }
.hall.is-scroll .aud { mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }

/* ---------- Bilet (formularz) ---------- */
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.ticket__head { padding: 20px 22px 18px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-radius: 19px 19px 0 0; }
.ticket__head small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--hero-accent); }
.ticket__head h3 { font-family: var(--font-display); font-weight: var(--display-weight); margin: 4px 0 0; font-size: 1.3rem; line-height: 1.2; }
.ticket__head p { margin: 6px 0 0; font-size: .88rem; opacity: .85; }
.ticket__tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 18px; }
.ticket__tear::before, .ticket__tear::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket__tear::before { left: -30px; clip-path: inset(0 0 0 50%); }
.ticket__tear::after { right: -30px; clip-path: inset(0 50% 0 0); }
.ticket__body { padding: 18px 22px 22px; }
.ticket__sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ticket__sel #status { font-weight: 700; color: var(--ink); }
.list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--seat-sel); color: var(--seat-sel-ink); }
.list:empty::before { content: 'Kliknij wolne krzesło na planie sali.'; font-size: .86rem; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.form .full { grid-column: 1 / -1; }
.input, .form input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input.is-valid { border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
#voucherInputs { grid-template-columns: 1fr; }

.voucher { margin: 4px 0 14px; padding: 14px; border-radius: 14px; background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); }
.voucher strong { display: block; margin-bottom: 6px; }

.summary { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; margin: 4px 0 12px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink-2); }
.summary strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary strong span { font-family: 'Source Sans 3', sans-serif; font-size: .9rem; color: var(--muted); font-weight: 600; }

.consents { display: grid; gap: 10px; font-size: .84rem; color: var(--ink-2); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.checkbox label { cursor: pointer; }
.hint { color: var(--muted); font-size: .8rem; }
.regulamin { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--accent); text-decoration: none; }
.regulamin:hover { text-decoration: underline; }

.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }

/* ---------- Pasek mobilny ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none;
  align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
  background: var(--ink); color: var(--bg); border-radius: 16px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .25s ease;
}
.mbar.show { transform: none; }
.mbar b { display: block; font-size: .95rem; }
.mbar span { font-size: .8rem; opacity: .75; }
.mbar .btn { padding: 11px 16px; font-size: .92rem; }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: .9rem; }
.footer .wrap-x { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink-2); font-weight: 600; }
.footer .brand img { width: 34px; height: 34px; }
.footer .brand b { font-size: 1rem; color: var(--ink); }

/* ---------- Modal „dziękujemy” ---------- */
.overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 12, 20, .65); backdrop-filter: blur(4px); transition: opacity .25s ease; }
.overlay.hidden { opacity: 0; pointer-events: none; }
.modal { width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: popIn .3s ease; }
.overlay.hidden .modal { animation: none; }
.modal__head { padding: 26px 28px 20px; text-align: center; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.modal__icon { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4); }
.modal__icon svg { width: 30px; height: 30px; }
.modal h2 { font-family: var(--font-display); font-weight: var(--display-weight); margin: 0; font-size: 1.7rem; }
.modal__head p { margin: 6px 0 0; opacity: .85; }
.modal__body { padding: 22px 28px 26px; }
.flex { display: flex; gap: 22px; align-items: flex-start; }
#qrcode:empty { display: none; }
#qrcode img { width: 170px; height: 170px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
#thankyou-text { flex: 1; font-size: .95rem; color: var(--ink-2); }
#thankyou-text h4 { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--warn); }
#thankyou-text b { color: var(--ink); }
.paybox { display: grid; gap: 8px; margin: 10px 0; }
.paybox div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.paybox span { color: var(--muted); font-size: .85rem; }
.paybox b { text-align: right; word-break: break-word; }
.copy { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 2px 8px; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; margin-left: 6px; }
.modal__foot { padding: 0 28px 26px; }
@keyframes popIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }

#fw-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1999; }

/* ---------- Responsywność ---------- */
[data-theme="droszkow"] .stage, :root:not([data-theme]) .stage { letter-spacing: .35em; }
[data-theme="droszkow"] .hall { background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, color-mix(in srgb, var(--sky) 45%, var(--surface-2)), var(--surface-2) 40%); }
.logo-img { object-fit: contain; }

@media (max-width: 1024px) {
  .booking { grid-template-columns: 1fr; margin-top: -30px; }
  .booking__aside { position: static; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__img { max-width: 640px; }
  .ev--featured { grid-template-columns: 1fr; }
  .ev--featured .ev__img { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .wrap-x { padding: 0 14px; }
  .hero { padding-bottom: 60px; }
  .hero__img { display: none; }
  .hero--event .hero__img { display: block; }
  .events { grid-template-columns: 1fr; }
  .ev--featured .ev__body { padding: 20px; }
  .hall { --seat-size: 30px; --board: 30px; padding: 16px 6px 14px; }
  .hall table { border-spacing: 3px 2px; }
  .aud--m { --seat-size: 28px; } .aud--l { --seat-size: 25px; } .aud-row { gap: 3px; } .aud-lbl { width: 16px; }
  .hall-card { padding: 16px 10px 12px; }
  .form { grid-template-columns: 1fr; }
  .flex { flex-direction: column; align-items: center; }
  .mbar { display: flex; }
  .topbar .link .long { display: none; }
  .topbar .link .short { display: inline; }
  .topbar .wrap-x { padding-top: 14px; padding-bottom: 14px; }
  .footer { padding-bottom: 96px; }
  .countdown div { min-width: 54px; }
}
@media (max-width: 380px) {
  .hall { --seat-size: 27px; --board: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Tryb widżetu (/embed/slug) – okno rezerwacji otwierane na stronie organizatora
   ========================================================================== */
.embed-head { position: sticky; top: 0; z-index: 40; color: #fff; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: 0 8px 24px -16px rgba(0,0,0,.6); }
.embed-head__in { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.embed-head small { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--hero-accent); }
.embed-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.15; margin: 2px 0 8px; }
.embed-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; opacity: .92; }
.embed-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.embed-head__meta svg { width: 15px; height: 15px; opacity: .8; }
.embed-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; }
.embed-close:hover { background: rgba(255,255,255,.25); }
.is-embed .section { padding: 20px 0 16px; }
.is-embed .booking { margin-top: 0; }
.is-embed .booking__aside { top: 112px; }
.embed-foot { text-align: center; font-size: .78rem; color: var(--muted); margin: 0; padding: 4px 16px 22px; }
.embed-foot a { color: var(--ink-2); }
@media (max-width: 640px) {
  .is-embed .mbar { bottom: 10px; }
  .embed-head__in { padding-top: 12px; padding-bottom: 12px; }
  .embed-head__meta { font-size: .8rem; }
}

/* ==========================================================================
   Brak wolnych miejsc / ostatnie miejsca – wyraźne oznaczenia
   ========================================================================== */
.chip--soldout { background: #b3261e; border-color: #e0574f; color: #fff; font-weight: 800; letter-spacing: .02em; box-shadow: 0 6px 18px -6px rgba(179,38,30,.8); }
.chip--few     { background: #e08a00; border-color: #f2b24a; color: #fff; font-weight: 800; box-shadow: 0 6px 18px -6px rgba(224,138,0,.8); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.8); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.btn--soldout { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }

.hero__img { position: relative; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  padding: 14px 28px 12px; text-align: center; white-space: nowrap;
  background: rgba(255,255,255,.94); color: #b3261e; border: 4px solid #b3261e; border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.94), 0 18px 40px -10px rgba(0,0,0,.6);
  animation: stampIn .45s cubic-bezier(.2,1.4,.4,1) .2s both;
}
.stamp b { display: block; font-family: 'Source Sans 3', system-ui, sans-serif; font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.stamp span { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
@keyframes stampIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); } }
.is-soldout .hero__img img { filter: saturate(.55) brightness(.8); }

.ticket__soldout { display: none; gap: 12px; align-items: flex-start; margin: 16px 22px 0; padding: 14px 16px; border-radius: 14px; background: #fdecea; border: 1px solid #f3b6b0; color: #7a1b14; }
.ticket__soldout svg { width: 22px; height: 22px; flex: none; color: #b3261e; margin-top: 1px; }
.ticket__soldout b { display: block; font-size: 1rem; color: #b3261e; }
.ticket__soldout span { display: block; font-size: .86rem; margin-top: 2px; }
.is-soldout .ticket__soldout { display: flex; }
.is-soldout .ticket__body { opacity: .45; pointer-events: none; filter: grayscale(.4); }
[data-theme="bal"] .ticket__soldout { background: rgba(179,38,30,.18); border-color: rgba(255,122,122,.45); color: #ffd4d0; }
[data-theme="bal"] .ticket__soldout b { color: #ff9a92; }
@media (max-width: 640px) { .stamp { padding: 10px 18px 9px; } .stamp span { font-size: .66rem; } }
.mbar:not(.show) { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }

/* ===== O wydarzeniu: miejsce, godziny, opis ===== */
.booking__main { display: grid; gap: 22px; min-width: 0; }
.about { padding: 22px; }
.about__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.about__facts > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.about__facts svg { grid-row: span 2; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.about__facts span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about__facts b { font-weight: 700; line-height: 1.3; color: var(--ink); }
.about__facts small { font-weight: 600; color: var(--ink-2); font-size: .88rem; }
.about__map { font-size: .86rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.about__map:hover { text-decoration: underline; }
.about__desc { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--ink-2); }
.about__desc h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; color: var(--ink); margin: 0 0 8px; }
.about__desc p { margin: 0 0 10px; }
.about__desc strong { color: var(--ink); font-weight: 700; }
.about__desc ul, .about__desc ol { margin: 0 0 12px; padding-left: 1.3em; }
.about__desc li { margin: 3px 0; padding-left: 2px; }
.about__desc ul li::marker { color: var(--accent); }
.chip--link { text-decoration: none; }
.chip--link:hover { background: rgba(255,255,255,.22); }
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: #1f2340; color: #fff; font-size: .9rem; }
.preview-bar svg { width: 18px; height: 18px; }
.preview-bar a { color: #ffd76a; font-weight: 700; margin-left: 8px; }
.ev__meta svg + span, .ev__meta span { white-space: nowrap; }
