/* Minimal, czysta stylistyka */
:root{
  --bg:#0b0e14;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#22d3ee;
  --btn:#2563eb;
  --btn-text:#fff;
  --border:#1f2937;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:var(--accent);text-decoration:none}
.container{width:min(1100px,92%);margin-inline:auto}
.site-header{position:sticky;top:0;background:rgba(11,14,20,.9);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--border);z-index:50}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{font-weight:700;font-size:1.15rem;color:#fff}
.nav a{margin-left:16px;color:var(--text)}
.hero {
  padding: 20px 0;
  margin-bottom: 20px;
}
.hero h1{font-size:2rem;margin:0 0 8px}
.hero p{color:var(--muted);margin:0}

.games{padding:32px 0}

.game-card{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:center;background:var(--card);border:1px solid var(--border);padding:18px;border-radius:16px;margin:18px 0}
.game-card h3{margin-top:0}
.game-meta ul{margin:0;padding-left:18px;color:var(--muted)}

.ad{margin:16px auto}
.more-info ul{padding-left:18px}

.site-footer{border-top:1px solid var(--border);padding:20px 0;color:var(--muted)}

.btn{display:inline-block;background:var(--btn);color:var(--btn-text);padding:10px 14px;border-radius:12px;font-weight:600;border:0;cursor:pointer}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text)}
.btn-secondary{background:#374151;color:#fff}

.cookie-banner{position:fixed;inset:auto 16px 16px 16px;background:var(--card);border:1px solid var(--border);padding:16px;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:680px; z-index: 9999}
.cookie-banner .cookie-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}

.consent-panel{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center; z-index: 9999}
.consent-panel .panel-content{background:var(--card);border:1px solid var(--border);padding:18px;border-radius:16px;width:min(600px,92%)}
#consent-panel[hidden]{display:none!important}

/* === GRID: zawsze 4 kolumny === */
.games-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  align-items:start;
  justify-items:center;
  margin-top:16px;
}

/* KAFELEK GRY */
.game-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:300px;
  flex:0 0 300px;
  background:#111827;
  border-radius:12px;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  transition:transform .18s;
}
.game-tile:hover{
  transform:translateY(-6px);
}

/* ------- MINIATURA + FILM -------- */

/* wrapper na miniaturę i film */
.thumb-wrap{
  position:relative;
  width:100%;
  height:200px;
  overflow:hidden;
  background:#000;
  border-radius:12px 12px 0 0;
}

/* miniatura POD spodem */
.thumb-wrap .thumb{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
  transition:opacity .25s ease-in-out;
}

/* FILM NAD miniaturą */
.thumb-wrap .preview{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  object-fit:contain;      /* jeśli chcesz pełne dopasowanie → 'cover' */
  background:#000;
  z-index:2;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease-in-out;
}

/* HOVER → film zamiast miniatury */
.thumb-wrap:hover .preview{opacity:1;}
.thumb-wrap:hover .thumb{opacity:0;}

/* -------- Tytuł gry -------- */
.game-title{
  margin-top:10px;
  padding:8px 10px;
  width:100%;
  text-align:center;
  background:#0f1720;
  color:var(--accent);
  font-weight:700;
  border-top:1px solid var(--border);
}

/* --------- RESPONSYWNOŚĆ ---------- */
@media(max-width:980px){
  .games-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .game-tile,.game-placeholder{
    width:45%;
    flex:0 0 45%;
  }
}

@media(max-width:480px){
  .games-grid{
    grid-template-columns:1fr;
  }
  .game-tile,.game-placeholder{
    width:100%;
    flex:0 0 100%;
  }
}

/* animowane dolary (bez zmian) */
.dollar{
  position:fixed;
  top:-50px;
  font-size:32px;
  animation:fall linear;
  z-index:10;
  pointer-events:none;
}
@keyframes fall{
  to{transform:translateY(110vh) rotate(360deg);opacity:0.7;}
}

/* === TABLICA WYNIKÓW === */

#scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text);
}

#scores-table th,
#scores-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

#scores-table th {
  background: #1a2333;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

#scores-table tr:hover td {
  background: rgba(255,255,255,0.04);
}

/* Wrapper przewijania */
.score-table-wrapper {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111827;
  padding: 6px;
}

/* === TABLICA WYNIKÓW: WERSJA POPRAWIONA === */

/* Ramka + pełna szerokość */
.score-table-wrapper {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111827;
  padding: 0;
}

/* Tabela */
#scores-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  color: var(--text);
}

/* Kolumny */
#scores-table th,
#scores-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--border);
}

/* Nagłówek tabeli */
#scores-table th {
  background: #1a2333;
  font-weight: 700;
  position: sticky;
  top: 0;           /* NAPRAWIA nakładanie się */
  z-index: 5;
}

/* Hover na wierszu */
#scores-table tr:hover td {
  background: rgba(255,255,255,0.06);
}

/* Ładniejszy scroll */
.score-table-wrapper::-webkit-scrollbar {
  width: 10px;
}

.score-table-wrapper::-webkit-scrollbar-track {
  background: #0f1623;
}

.score-table-wrapper::-webkit-scrollbar-thumb {
  background: #2f3a4d;
  border-radius: 10px;
}

.score-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #445369;
}
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-item small {
  color: var(--muted);
  line-height: 1.3;
}
