/* myfreemmo.com — strona dla ruchu odrzuconego przez Everflow.
   Ciemny motyw, czerwień marki #fa2015, Plus Jakarta Sans (nagłówki) + Inter (tekst).
   Desktop: siatka 4×4. Telefon: zwarta lista, żeby na pierwszym ekranie było więcej ofert. */
:root {
  --bg: #0b0b10;
  --surface: #15151d;
  --surface-2: #1d1d27;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --fg: #f5f5f7;
  --muted: #9b9bab;
  --red: #fa2015;
  --red-hover: #ff3b2f;
  --red-soft: rgba(250, 32, 21, .14);
  --gold: #f5b83d;
  --radius: 16px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(250, 32, 21, .22), transparent 70%),
    radial-gradient(600px 300px at 90% 10%, rgba(120, 60, 255, .10), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Tło ze starej strony myfreemmo (smugi gwiazd), przyciemnione i wygaszane ku dołowi, żeby karty
   były czytelne. Osobna warstwa position: fixed zamiast background-attachment: fixed (iOS). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(250, 32, 21, .25), transparent 70%),
    linear-gradient(180deg, rgba(11, 11, 16, .35) 0%, rgba(11, 11, 16, .7) 45%, var(--bg) 100%),
    url("img/bg.jpg") center top / cover no-repeat;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ── Pasek z logo ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center;
  padding: 12px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(11, 11, 16, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 40px; width: auto; }

.page {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px max(20px, env(safe-area-inset-left, 0px)) 56px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ── Nagłówek z powodem ── */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.chip {
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 500; color: #d9d9e3;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}
.sub { margin: 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); max-width: 52ch; text-wrap: balance; }

/* ── Oferty ── */
.offers { display: flex; flex-direction: column; gap: 16px; }
.offers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; scroll-margin-top: 84px; }
.offers-head h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.offers-meta { margin: 0; color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); outline: none; }
.card:focus-visible { box-shadow: 0 0 0 2px var(--red); }

.thumb { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(135deg, #2a1414, #17171f); overflow: hidden; }
/* Obrazki ofert to raz loga, raz grafiki z gry, w różnych proporcjach. Cały obrazek (contain) na
   rozmytej kopii samego siebie; jasna podkładka pod spodem, żeby czarne loga z przezroczystym tłem
   (np. mBitCasino) były widoczne. */
.thumb:has(.thumb-bg) { background: #ececf1; }
.thumb .thumb-bg {
  position: absolute; inset: -24px; z-index: 0;
  width: calc(100% + 48px); height: calc(100% + 48px); max-width: none;
  object-fit: cover; filter: blur(22px) saturate(1.15); opacity: .9;
}
.thumb .thumb-img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; padding: 10px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25));
  transition: transform .3s ease;
}
.card:hover .thumb .thumb-img { transform: scale(1.04); }
.thumb .initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 44px; color: rgba(255, 255, 255, .14);
}

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); color: #cfcfda;
}
.tag.age { background: var(--red-soft); color: #ff8a82; }
.card h3 {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--red);
  color: #fff; font-weight: 600; font-size: 14px;
  transition: background .18s ease;
}
.card:hover .cta { background: var(--red-hover); }
.cta .arrow { transition: transform .18s ease; }
.card:hover .cta .arrow { transform: translateX(3px); }

.skeleton { min-height: 280px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.empty h2 { margin: 0 0 6px; font-family: var(--display); color: var(--fg); font-size: 22px; }
.empty p { margin: 0; }

/* ── Wymiana ofert ── */
.more {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 12px; padding: 24px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}
.more p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.more-btn:hover { border-color: rgba(255, 255, 255, .32); background: #262632; }
.more-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.more-btn svg { transition: transform .4s ease; }
.more-btn:hover svg { transform: rotate(-180deg); }

.rg-note { margin: 0 auto; max-width: 70ch; text-align: center; font-size: 12.5px; color: var(--muted); }

.footer {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 20px max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer p { margin: 0; }
.footer-logo { height: 26px; width: auto; opacity: .8; }

/* ── Tablet ── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Telefon: zwarta lista ── */
@media (max-width: 600px) {
  .page { padding-top: 24px; gap: 24px; }
  .logo img { height: 34px; }
  .hero { gap: 10px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { flex-direction: row; align-items: center; border-radius: 14px; }
  .card:hover { transform: none; }
  .thumb { flex: 0 0 84px; width: 84px; height: 84px; aspect-ratio: auto; margin: 10px 0 10px 10px; border-radius: 10px; }
  .thumb .initial { font-size: 30px; }
  .thumb .thumb-img { padding: 6px; }
  .card-body { padding: 10px 12px; gap: 6px; justify-content: center; }
  .card h3 { font-size: 15px; }
  .cta {
    margin: 0 12px 0 0; flex: 0 0 auto;
    padding: 9px 12px; font-size: 13px; border-radius: 9px;
  }
  .cta .label-long { display: none; }
  .skeleton { min-height: 104px; }
}

/* ── Potwierdzenie 18+ ── */
.age-gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(5, 5, 8, .76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.age-box {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px;
  text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
}
.age-box h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.age-box p { margin: 0; color: var(--muted); }
.age-badge {
  align-self: center; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--red); color: var(--fg) !important;
  font-family: var(--display); font-weight: 800; font-size: 17px;
}
.age-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.age-actions button { font: inherit; font-weight: 600; font-size: 15px; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.btn-yes { background: var(--red); color: #fff; border: 0; }
.btn-yes:hover { background: var(--red-hover); }
.btn-no { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.age-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .card, .thumb .thumb-img, .cta .arrow, .skeleton, .more-btn svg { transition: none; animation: none; }
  .card:hover { transform: none; }
  .card:hover .thumb .thumb-img { transform: none; }
}
