/* CoPadło: zielona tablica wyników. Płasko, cienkie linie, kondensowana czcionka do liczb
   i nagłówków. Kule jak prawdziwe kule losujące, kolor gry ustawia data-game. */

/* Barlow / Barlow Condensed (SIL OFL), hostowane lokalnie: bez zapytań do Google Fonts.
   font-display: optional + preload w <head> + długi cache = tekst nie przeskakuje przy ładowaniu. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: optional; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); 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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: optional; src: url(/fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Barlow'; font-style: normal; font-weight: 600; font-display: optional; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); 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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: optional; src: url(/fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Barlow'; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/barlow-latin-700-normal.woff2) format('woff2'); 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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/barlow-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); 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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: optional; src: url(/fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: optional; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); 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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: optional; src: url(/fonts/barlow-condensed-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --g-950: #04291a;
  --g-900: #073a24;
  --g-800: #0b4d2c;
  --g-700: #0f6136;
  --g-600: #157a43;
  --g-500: #1d9a55;
  --g-300: #8fd2aa;
  --g-100: #dcecdf;
  --g-50: #eef4ee;

  --ink: #14211a;
  --muted: #5f6b64;
  --line: #d9e0d8;
  --line-strong: #b9c6bb;
  --card: #ffffff;
  --bg: #f7f9f5;
  --live: #e53327;
  --gold: #f4bf1a;

  --r: 6px;

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-num: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;

  --ball: var(--g-500);
  --ball-ink: #fff;
  --ball-extra: #1e6fd9;
}

/* ---------- kolory gier ---------- */
[data-game="keno"]          { --ball: #e53935; --ball-extra: #e53935; }
[data-game="szybkie-600"]   { --ball: #8e44ad; --ball-extra: #8e44ad; }
[data-game="multi-multi"]   { --ball: #f57c00; --ball-extra: #d81b60; }
[data-game="kaskada"]       { --ball: #00a5a8; --ball-extra: #00a5a8; }
[data-game="lotto"]         { --ball: #f6c000; --ball-extra: #1e6fd9; --ball-ink: #1d1a0a; }
[data-game="mini-lotto"]    { --ball: #1d9a55; --ball-extra: #1d9a55; }
[data-game="eurojackpot"]   { --ball: #1f4fd1; --ball-extra: #f6c000; }
[data-game="ekstra-pensja"] { --ball: #d81b60; --ball-extra: #3a3a3a; }
[data-game="ekstra-premia"] { --ball: #6a4cdb; --ball-extra: #3a3a3a; }

* { box-sizing: border-box; }
html { font-size: 16px; height: 100%; color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: block; width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.2rem 1rem 1.6rem; }

h1, h2, h3 { font-family: var(--font); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 1.6em 0 0.55em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-top: 0.1em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 60ch; margin-top: 0; }

a { color: var(--g-700); text-underline-offset: 2px; }
a:hover { color: var(--g-500); }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5em 0.8em; z-index: 200; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- nagłówek ---------- */
.site-header { background: var(--g-800); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
.header-top { background: var(--g-800); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-bar {
  max-width: 1080px; margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.4rem 1rem; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
/* logo: kula /lottery.svg (ta sama grafika co favicon) */
.logo-mark { display: block; flex-shrink: 0; width: 40px; height: 40px; transition: transform 0.3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.logo:hover .logo-mark { transform: rotate(-12deg); }
.logo-text { font-family: var(--font); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo-text span { color: inherit; }

.live-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-cond);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(229, 51, 39, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 51, 39, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(229, 51, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 51, 39, 0); }
}

.game-nav {
  max-width: 1080px; margin: 0 auto;
  padding: 0.15rem 1rem 0;
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.game-nav::-webkit-scrollbar { display: none; }
.game-nav a {
  flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45em;
  color: #d7eadc; text-decoration: none;
  font-family: var(--font-cond);
  font-size: 1.05rem; font-weight: 600;
  padding: 0.55em 0.8em 0.6em;
  border-bottom: 3px solid transparent;
}
.game-nav a::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ball); }
.game-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.game-nav a.active { color: #fff; border-bottom-color: var(--gold); }

/* ---------- pasek na żywo ---------- */

.ticker {
  background: var(--g-950);
  color: #cfe9da;
  overflow: hidden;
  border-bottom: 3px solid var(--g-500);
  font-size: 0.95rem;
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: ticker 70s linear infinite;
}
.ticker { contain: paint; }
/* ---------- panel moderacji ---------- */
.admin-scan img { width: 100%; max-height: 260px; object-fit: contain; display: block; background: #fff; }
.admin-scan .meta-line { padding: 0 0.8rem; }
.admin-actions { display: flex; gap: 0.5rem; padding: 0 0.8rem 0.8rem; }
.btn--danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.inline-form { display: inline; margin-left: 0.4rem; }
.admin-skany .link-button { color: var(--g-700); text-decoration: underline; }

/* ---------- baner skanera na stronie głównej ---------- */
.promo-scanner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1rem;
  margin: 1.4rem 0 0.4rem; padding: 1rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--g-800), var(--g-600));
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(11, 77, 44, 0.18);
}
.promo-scanner:hover { color: #fff; }
.promo-scanner::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
  animation: promo-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes promo-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.promo-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  animation: promo-bob 2.4s ease-in-out infinite;
}
@keyframes promo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.promo-body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.promo-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); color: #3d2c00; padding: 0.1em 0.55em; border-radius: 999px;
}
.promo-body strong { font-size: 1.15rem; }
.promo-text { color: #d7eadc; font-size: 0.95rem; }
.promo-cta {
  flex-shrink: 0; background: #fff; color: var(--g-800); font-weight: 700;
  padding: 0.55em 1em; border-radius: 8px; white-space: nowrap;
}
.promo-scanner:hover .promo-cta { background: var(--gold); color: #3d2c00; }
@media (max-width: 640px) {
  .promo-scanner { flex-wrap: wrap; }
  .promo-cta { width: 100%; text-align: center; }
}

.game-intro { color: var(--muted); max-width: 70ch; margin: 1rem 0 0.4rem; }
.ticker-item { contain: layout paint; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5rem 1.1rem;
  color: #cfe9da;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.ticker-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ticker-item strong { color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; }
.ticker-time { color: var(--g-300); font-variant-numeric: tabular-nums; }
.mini-balls { display: inline-flex; gap: 3px; }
.mini-balls i {
  font-style: normal;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.7rem;
  width: 1.7em; height: 1.7em;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ball); /* płaski kolor: pasek przewija się płynniej na telefonach */
}


/* ---------- kule ---------- */

.balls {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.ball {
  --c: var(--ball);
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%),
    radial-gradient(circle at 50% 45%, var(--c) 0 58%, color-mix(in srgb, var(--c) 65%, #000) 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}
.ball::after {
  /* połysk */
  content: '';
  position: absolute;
  top: 9%; left: 18%;
  width: 38%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
  transform: rotate(-25deg);
  pointer-events: none;
}
.ball > span {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: #fff;
  color: #14201a;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
.balls--extra .ball { --c: var(--ball-extra); }

.draw-card--hero .ball { width: clamp(2.7rem, 9vw, 3.6rem); height: clamp(2.7rem, 9vw, 3.6rem); }
.draw-card--hero .ball > span { font-size: clamp(0.95rem, 3vw, 1.25rem); }
.draw-card--hero .balls { gap: 0.5rem; }

/* animacja wpadania kul: wynik na górze strony gry, kafelki na głównej i świeżo dociągnięty wynik */
.draw-card--hero .ball, .game-tile .ball, .is-new .ball {
  animation: ball-in 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes ball-in {
  0% { transform: translateY(-40px) scale(0.4) rotate(-120deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* sprawdzarka: trafione kule świecą, pozostałe przygaszone */
.balls--check .ball:not(.hit) { filter: grayscale(0.85); opacity: 0.45; }
.balls--check .ball.hit { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--g-500), 0 4px 12px rgba(25, 168, 92, 0.5); }

.ball > span { font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
.draw-card--hero .ball > span { font-size: clamp(1.05rem, 3.2vw, 1.4rem); }
.ticker { border-bottom: 0; }
.mini-balls i { font-size: 0.78rem; font-weight: 700; }

/* ---------- okruszki ---------- */
.breadcrumbs { max-width: 1080px; margin: 0 auto; width: 100%; font-size: 0.92rem; padding: 0.8rem 1rem 0; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--g-700); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.45em; opacity: 0.5; }

/* ---------- karta losowania ---------- */
.draw-card { padding: 0.85rem 0; }
.draw-card-head { display: flex; align-items: baseline; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.55rem; }
.draw-time { font-family: var(--font-num); font-weight: 700; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.draw-id { font-variant-numeric: tabular-nums; }
.multiplier {
  margin-left: auto; align-self: center;
  font-family: var(--font-num); font-weight: 800; font-size: 1rem;
  color: #3d2c00; background: var(--gold);
  padding: 0.05em 0.5em; border-radius: 3px; line-height: 1.3;
}
.extra-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.65rem; }
.extra-label { font-family: var(--font-cond); font-size: 0.95rem; font-weight: 700; color: var(--muted); }

/* lista losowań = jedna tablica z wierszami */
.draw-list { list-style: none; margin: 0; padding: 0 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.draw-list > li + li { border-top: 1px solid var(--line); }
.draw-list .ball { width: 2.3rem; height: 2.3rem; }
.draw-list .ball > span { font-size: 0.95rem; }
@media (min-width: 760px) {
  .draw-list .draw-card { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; align-items: center; }
  .draw-list .draw-card-head { flex-direction: column; align-items: flex-start; gap: 0.15rem; margin: 0; grid-row: span 2; }
  .draw-list .multiplier { margin-left: 0; margin-top: 0.25rem; }
  .draw-list .extra-row { grid-column: 2; }
}

/* ---------- panel na żywo (strona gry) ---------- */
.live-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-head {
  background: var(--ball); color: var(--ball-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
}
.panel-head h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.panel-head h1 small { font-size: 0.6em; font-weight: 600; opacity: 0.85; margin-left: 0.2em; }
.panel-head .live-badge { margin-left: 0; color: var(--ball-ink); }
.panel-head .live-dot { background: #fff; animation-name: live-pulse-light; }
[data-game="lotto"] .panel-head .live-dot { background: var(--live); animation-name: live-pulse; }
@keyframes live-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.live-panel .countdown, .live-panel .latest-slot { margin-left: 1.1rem; margin-right: 1.1rem; }
.latest-slot { padding-bottom: 1.1rem; }

.countdown { margin: 1rem 0 0.4rem; }
.countdown-text { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.countdown-label { font-weight: 500; color: var(--muted); }
.countdown-value { font-family: var(--font-num); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown-progress { height: 4px; margin-top: 0.5rem; background: var(--g-50); overflow: hidden; }
.countdown-progress span { display: block; height: 100%; width: 100%; background: var(--g-500); transform: scaleX(0); transform-origin: left center; transition: transform 1s linear; }
.is-due .countdown-label { color: var(--live); font-weight: 600; }
.is-due .countdown-label::before {
  content: ''; display: inline-block; width: 0.85em; height: 0.85em; margin-right: 0.45em; vertical-align: -0.1em;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.is-due .countdown-progress span {
  background: repeating-linear-gradient(-45deg, var(--g-500) 0 8px, var(--g-300) 8px 16px);
  background-size: 22px 100%;
  animation: stripes 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stripes { to { background-position: 22px 0; } }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background-color: #fffbe6; } 100% { background-color: var(--card); } }

/* ---------- zakładki ---------- */
.tabs { display: flex; gap: 0; margin: 1.2rem 0 0.4rem; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem;
  color: var(--muted); text-decoration: none;
  padding: 0.45em 0.9em; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--g-700); border-bottom-color: var(--g-500); }

.quick-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 1.2rem 0; font-weight: 600; }
.quick-links a { text-decoration: none; }
.quick-links a:hover { text-decoration: underline; }
.day-nav { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.8rem; }

.day-chips { display: flex; gap: 0; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.day-chips a {
  flex: 1 0 auto; min-width: 6rem;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.6em 0.8em; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line);
}
.day-chips a:last-child { border-right: 0; }
.day-chips strong { font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; }
.day-chips span { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.day-chips a:hover { background: var(--g-50); }

.meta-line { color: var(--muted); }
.count-pill { font-family: var(--font-num); font-weight: 800; font-size: 1.15em; color: var(--ink); }
.no-data { color: var(--muted); font-style: italic; }
.result-disclaimer, .stats-disclaimer, .ticket-disclaimer { font-size: 0.85rem; color: var(--muted); margin: 1.2rem 0 0; }

/* ---------- strona główna ---------- */
.home-hero { padding: 0.3rem 0 0.2rem; }
.kicker { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; color: var(--g-600); text-transform: uppercase; letter-spacing: 0.06em; }
.home-hero h1 { margin: 0.05em 0 0.3em; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.game-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.tile-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  background: var(--ball); color: var(--ball-ink);
  padding: 0.5rem 0.9rem; text-decoration: none;
}
.tile-head:hover { color: var(--ball-ink); filter: brightness(1.06); }
.tile-head h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.tile-next { font-size: 0.95rem; white-space: nowrap; opacity: 0.92; }
.tile-next b { font-family: var(--font-num); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.game-tile.is-due .tile-next { opacity: 1; }
.game-tile .countdown-progress { margin: 0; height: 3px; }
.game-tile [data-latest-slot] { padding: 0 0.9rem; flex: 1; }
.game-tile .draw-card { padding: 0.75rem 0 0.8rem; }
.game-tile .ball { width: 2.3rem; height: 2.3rem; }
.game-tile .ball > span { font-size: 0.95rem; }
.game-tile .balls { gap: 0.3rem; }
.tile-links { display: flex; border-top: 1px solid var(--line); }
.tile-links a {
  flex: 1; text-align: center; white-space: nowrap;
  font-size: 0.98rem; font-weight: 600; text-decoration: none; color: var(--g-700);
  padding: 0.5em 0.3em;
}
.tile-links a + a { border-left: 1px solid var(--line); }
.tile-links a:hover { background: var(--g-50); color: var(--g-800); }

/* ---------- formularze ---------- */
.btn, .btn-new-draw {
  font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em;
  background: var(--g-600); color: #fff; border: 0; border-radius: 4px;
  padding: 0.5em 1.3em; cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--g-700); }

.contact-form, .ticket-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; margin: 1rem 0; }
.contact-form { max-width: 520px; display: flex; flex-direction: column; gap: 0.3rem; }
.contact-form label { font-size: 0.92rem; font-weight: 600; margin-top: 0.5rem; }
.contact-form input, .contact-form textarea,
.ticket-form input[type="text"], .ticket-form input[type="date"], .ticket-form input[type="number"] {
  font: inherit; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 0.5em 0.65em; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .ticket-form input:focus { border-color: var(--g-600); outline: 2px solid var(--g-100); }
.contact-form button { margin-top: 0.9rem; align-self: flex-start; }
.ticket-form label { display: block; margin: 0.5em 0; }
.ticket-form input[type="text"] { width: 100%; max-width: 420px; font-size: 1.1rem; }
.ticket-form fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0.9em 0; padding: 0.4em 0.9em 0.7em; }
.ticket-form legend { font-weight: 700; padding: 0 0.3em; }
.n-input { width: 4.5em; }
.hits-label { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; color: var(--g-700); margin: 0.9em 0 0; }
.sprawdz-kupon .draw-list > li { padding-top: 0.2rem; }

.form-success { background: var(--g-50); border: 1px solid var(--g-300); border-radius: 4px; padding: 0.7em 0.9em; }
.form-errors { background: #fdf1f0; border: 1px solid #f3c2bd; color: #a12a20; border-radius: 4px; padding: 0.6em 0.9em 0.6em 1.8em; }

/* ---------- tabele, listy ---------- */
.table-wrap { overflow-x: auto; }
.month-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 1.05rem; }
.month-list a { font-weight: 600; }

.month-table, .schedule-table, .systemy-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); font-size: 0.95rem; margin: 0.8rem 0 1.5rem;
}
.month-table th, .month-table td, .schedule-table th, .schedule-table td, .systemy-table th, .systemy-table td {
  padding: 0.5em 0.75em; border-bottom: 1px solid var(--line); text-align: left;
}
.month-table th, .schedule-table th, .systemy-table th {
  font-family: var(--font-cond); font-weight: 700; font-size: 1rem; color: var(--muted);
  border-bottom: 2px solid var(--line-strong); background: var(--g-50);
}
.month-table tr.empty td { color: #a7b1aa; }
.month-table td a { font-weight: 700; }
.month-table tbody tr:hover, .schedule-table tbody tr:hover { background: var(--g-50); }
.schedule-table th:not(:first-child), .schedule-table td:not(:first-child) { text-align: center; }
.schedule-table td:first-child a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em; }
.schedule-table td:first-child a::before { content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ball); }
.schedule-table td:first-child a:hover { color: var(--g-700); }
.schedule-table .dot { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--ball); }

.overdue-list { list-style: none; padding: 0; margin: 0.6rem 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.overdue-list li { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.8em; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.overdue-ago { color: var(--muted); }

.stats-bars { list-style: none; padding: 0.5rem 1rem; margin: 0.6rem 0 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stats-row { display: grid; grid-template-columns: 2.2em 1fr 3.8em 10em; align-items: center; gap: 0.7rem; font-size: 0.9rem; padding: 0.18rem 0; }
.stats-number { font-family: var(--font-num); font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
.stats-bar-track { height: 0.7em; background: var(--g-50); }
.stats-bar-fill { display: block; height: 100%; background: var(--g-500); }
.stats-count { font-family: var(--font-num); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stats-ago { color: var(--muted); }

.helplines { list-style: none; padding: 0; }
.helplines li { margin: 0.4em 0; }
.hours { color: var(--muted); font-size: 0.88rem; }
.faq dt { font-weight: 700; margin-top: 1em; }
.faq dd { margin-left: 0; color: var(--muted); }

.systemy-warning { background: #fff8e1; border-left: 4px solid var(--gold); padding: 0.7em 0.9em; font-size: 0.92rem; }
.todo-note { border-left: 4px solid var(--line-strong); background: var(--card); padding: 0.6em 0.9em; font-size: 0.9rem; color: var(--muted); }
.systemy-note { font-size: 0.85rem; color: var(--muted); }
.info-page, .zasady, .odpowiedzialna-gra { max-width: 760px; }

/* ---------- stopka ---------- */
.site-footer { flex-shrink: 0; background: var(--g-900); color: #a9c8b4; font-size: 0.95rem; margin-top: 0; }
.footer-grid {
  max-width: 1080px; margin: 0 auto;
  padding: 2rem 1rem 1.4rem;
  display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 1fr; gap: 1.6rem 2rem;
}
.footer-list-2col { columns: 2; column-gap: 1.4rem; }
.footer-list-2col li { break-inside: avoid; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-text span { color: inherit; }
.footer-slogan { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; color: var(--gold); margin: 0.6rem 0 0.3rem; }
.footer-mail {
  display: flex; width: fit-content; align-items: center; gap: 0.5em;
  margin: 0.8rem 0 0.5rem;
  color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.footer-mail:hover { color: #fff; text-decoration: underline; }
.footer-mail svg { flex-shrink: 0; }
.footer-about { margin: 0; line-height: 1.45; max-width: 34ch; }
.footer-col h2 { font-size: 1.05rem; color: #fff; margin: 0.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.5rem; }
.footer-col a, .link-button { color: #cfe3d6; text-decoration: none; }
.footer-col a:hover, .link-button:hover { color: #fff; text-decoration: underline; }
.link-button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-bottom {
  max-width: 1080px; margin: 0 auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom .disclaimer { margin: 0; flex: 1 1 360px; }
.copyright { margin: 0; color: #86a894; }
.age-icon { flex-shrink: 0; width: 40px; height: 40px; display: block; }
.age-notice { font-weight: 700; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-col--games { grid-column: 1 / -1; }
}

/* ---------- cookies ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--card); color: var(--ink);
  border-top: 3px solid var(--g-600);
  box-shadow: 0 -4px 20px rgba(4, 41, 26, 0.15);
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  z-index: 100; font-size: 0.9rem;
}
.cookie-banner > * { max-width: 1048px; margin-left: auto; margin-right: auto; }
.cookie-banner p { margin-top: 0; margin-bottom: 0.6rem; }
.cookie-options { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: 0.7rem; }
.cookie-options label { display: flex; align-items: center; gap: 0.35em; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn:not(:first-child) { background: transparent; color: var(--g-700); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  .logo-text { font-size: 1.5rem; }
  .ball { width: 2.25rem; height: 2.25rem; }
  .ball > span { font-size: 0.95rem; }
  .draw-list .ball, .game-tile .ball { width: 2.1rem; height: 2.1rem; }
  .draw-list .ball > span, .game-tile .ball > span { font-size: 0.9rem; }
  .balls { gap: 0.28rem; }
  .countdown-value { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 2.2em 1fr 3.4em; }
  .stats-ago { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { overflow-x: auto; }
}
.draw-card--hero .draw-time { font-size: 1.7rem; }
.draw-card--hero .balls { gap: 0.45rem; }
