
:root {
  --white: #FDFBF7;
  --paper: #FDFBF7;
  --red: #E63946;
  --red-dark: #C1121F;
  --black: #111111;
  --grey: #717171;
  --grey-light: #D8D3CB;
  --correct: #1E6B1E;
  --wrong: #E63946;
  --ink: #111111;
  --blue: #0077B6;
  --yellow: #FFCA3A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Polish flag stripe ──────────────────────── */
.flag-stripe {
  width: 100%;
  height: 5px;
  display: flex;
}
.flag-stripe .w { flex: 1; background: var(--paper); border-bottom: 1px solid #ddd; }
.flag-stripe .r { flex: 1; background: var(--red); }

/* ── Header ──────────────────────────────────── */
header {
  width: 100%;
  max-width: 900px;
  border-bottom: 1.5px solid var(--black);
}

.header-top {
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  width: 183px;
  height: auto;
  display: block;
}
.site-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
  text-decoration: underline wavy var(--red);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.tagline {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.header-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.date-badge {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  color: var(--grey);
}

.lang-toggle {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-decoration: none;
  border: 1px solid var(--grey-light);
  padding: 2px 8px;
  transition: color 0.15s, border-color 0.15s;
}
.lang-toggle:hover { color: var(--black); border-color: var(--black); }

/* ── Nav row 2 ───────────────────────────────── */
.header-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-top: 1px solid var(--grey-light);
  min-height: 34px;
}

.nav-left {
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.nav-center {
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-center::-webkit-scrollbar { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 12px;
}

.header-nav a {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--black); }
.header-nav a.active { color: var(--black); border-bottom-color: var(--red); }

/* Auth buttons in header-top */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 12px;
}

.auth-btn-white {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 4px 12px;
  background: white;
  color: var(--black);
  border: 1.5px solid var(--grey-light);
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.auth-btn-white:hover { border-color: var(--black); }

.auth-btn-red {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 4px 12px;
  background: var(--red);
  color: white;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s;
}
.auth-btn-red:hover { background: var(--red-dark); }

/* ── Cookie consent banner ───────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: #f0ece4;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  font-size: 0.82rem;
  line-height: 1.5;
  flex-wrap: wrap;
}
#cookie-banner.hidden { display: none; }
#cookie-banner a { color: #aaa; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 7px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  border: none;
}
.cookie-btn.accept { background: var(--red); color: white; }
.cookie-btn.reject { background: transparent; color: #aaa; border: 1px solid #555; }
.cookie-btn:hover { opacity: 0.85; }

/* ── Static content pages ─────────────────────── */
.content-main {
  width: 100%;
  max-width: 720px;
  padding: 40px 24px 80px;
}

.content-main h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
}

.content-main .content-meta {
  font-size: 0.78rem;
  color: var(--grey);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-light);
}

.content-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin: 32px 0 10px;
}

.content-main p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 14px;
}

.content-main ul {
  margin: 0 0 14px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.header-hub-link {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--grey-light);
  padding: 5px 12px;
  border-radius: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.header-hub-link:hover { border-color: var(--black); color: var(--black); }

.header-stats-btn {
  background: transparent;
  border: 1.5px solid var(--grey-light);
  color: var(--grey);
  padding: 5px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-stats-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.header-stats-btn:hover { border-color: var(--black); color: var(--black); }

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  background: var(--black);
  color: white;
  border: none;
  padding: 12px 40px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--red); }
.btn-primary:disabled { background: var(--grey); cursor: default; }

/* ── Modals ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--paper);
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 28px;
  border-top: 4px solid var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-body { font-size: 0.88rem; line-height: 1.7; color: var(--ink); margin-bottom: 20px; }
.modal-body p { margin-bottom: 8px; }
.modal-btn {
  background: var(--black); color: white; border: none;
  padding: 10px 30px;
  font-family: 'Lato', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 1px; margin-right: 10px;
}
.modal-btn:hover { background: var(--red); }
.modal-btn.outline {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black);
}
.modal-btn.outline:hover { background: var(--black); color: white; }
/* tutorial legend */
.tut-legend { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.tut-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.tut-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Stats bars ──────────────────────────────── */
.stats-bar-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px;
  font-family: 'Source Code Pro', monospace; font-size: 0.78rem;
}
.stats-bar-label { width: 40px; color: var(--grey); flex-shrink: 0; }
.stats-bar-track {
  flex: 1; background: #E0D8CE; height: 24px;
  border-radius: 2px; overflow: hidden;
}
.stats-bar-fill {
  height: 100%; background: var(--black); border-radius: 2px;
  display: flex; align-items: center; padding-left: 6px;
  color: white; font-size: 0.72rem; font-weight: 700;
  transition: width 0.9s ease; min-width: 0;
}
.stats-bar-fill.hi { background: var(--correct); }
.stats-meta {
  margin-top: 14px; font-size: 0.8rem; color: var(--grey);
  display: flex; gap: 24px; flex-wrap: wrap;
}
.stats-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.modal-title svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Per-letter feedback ─────────────────────── */
.feedback-word {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 4px;
  min-height: 36px;
}
.letter-span { display: inline-block; }
.lc { color: var(--correct); font-weight: 700; }
.lw { color: var(--wrong); }
.fb-dash { color: #999; font-size: 1.1rem; }

/* ── On-screen keyboard ──────────────────────── */
.kb-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #EDE8E0;
  border-top: 1.5px solid var(--grey-light);
  padding: 8px 4px 10px;
  display: none;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.kb-container.visible { display: block; }
.kb-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
}
.kb-key {
  background: white;
  border: 1px solid #C0BBB2;
  border-radius: 4px;
  min-width: 30px;
  height: 42px;
  padding: 0 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: var(--ink);
  box-shadow: 0 2px 0 #B0AAA0;
  transition: background 0.08s;
  flex: 1;
  max-width: 44px;
}
.kb-key:active { background: #D0CCC5; transform: translateY(1px); box-shadow: 0 1px 0 #B0AAA0; }
.kb-key.wide { max-width: 64px; font-size: 0.72rem; background: #D8D3CB; }
.kb-key.polish { color: var(--red); background: #FFF5F5; }
body.kb-open { padding-bottom: 160px; }

/* ── Result / Score block ────────────────────── */
.score-display {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1;
}
.score-num { font-size: 3.2rem; color: var(--red); }
.score-denom { font-size: 1.6rem; color: var(--black); }
.score-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
  font-weight: 700;
}

/* ── Anthem bar ──────────────────────────────── */
.anthem-bar {
  width: 100%;
  max-width: 320px;
  height: 4px;
  background: #E0D8CE;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.anthem-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s ease;
}

/* ── Input shared ────────────────────────────── */
.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  text-align: center;
  background: #FDFAF5;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.text-input:focus { border-color: var(--black); background: white; }
.text-input.correct { background: #EAF5EA; border-color: var(--correct); color: var(--correct); font-weight: 600; pointer-events: none; }
.text-input.wrong   { background: #FDE8E8; border-color: var(--wrong);   color: var(--wrong);   pointer-events: none; }

/* ── Main layout ─────────────────────────────── */
main.game-main {
  width: 100%;
  max-width: 680px;
  padding: 24px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 480px) {
  main.game-main { padding: 16px 16px 120px; }
}

/* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
@media (max-width: 768px) {
  .text-input, .form-input { font-size: 16px; }
}

/* ── Mobile header / nav ─────────────────────────── */
@media (max-width: 600px) {
  /* nav scrolls horizontally instead of wrapping */
  .nav-center { justify-content: flex-start; }
  /* hide date and tagline — not enough space */
  .date-badge { display: none; }
  .tagline    { display: none; }
}

/* ── Sidebar ads — fixed, 100px from viewport edges ── */
.ad-sidebar-fixed {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  z-index: 10;
  display: none;
}
.ad-sidebar-fixed.ad-left  { left: 100px; }
.ad-sidebar-fixed.ad-right { right: 100px; }

@media (min-width: 1400px) {
  .ad-sidebar-fixed { display: block; }
}

.ad-sidebar-fixed ins.adsbygoogle {
  display: inline-block !important;
  width: 160px;
  height: 600px;
}

/* hide ad wrappers when AdSense has no ad to show */
.ad-bottom:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-sidebar-fixed:has(ins[data-ad-status="unfilled"]) { display: none; }
.rm-ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.game-card-ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ── Bottom ad ───────────────────────────────────── */
.ad-bottom {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  padding: 0 24px;
}

.ad-bottom ins.adsbygoogle {
  display: block !important;
  width: 100%;
  min-height: 90px;
  max-height: 250px; /* zapobiega zbyt dużym formatom pod grą */
}

@media (max-width: 680px) {
  .ad-bottom ins.adsbygoogle {
    min-height: 50px;
    max-height: 100px; /* mobile — nie zepchnij treści */
  }
}

/* ── Result Modal (shared across all games) ────── */
.rm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.62);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  opacity: 0; transition: opacity 0.18s;
}
.rm-overlay.visible { opacity: 1; }
.rm-box {
  background: var(--paper);
  width: calc(100% - 32px); max-width: 400px;
  border-top: 4px solid var(--red);
  padding: 22px 24px 20px;
  position: relative;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.rm-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  font-size: 1.4rem; color: var(--grey);
  cursor: pointer; line-height: 1; padding: 4px;
}
.rm-close:hover { color: var(--black); }
.rm-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; margin-bottom: 16px;
  color: var(--black);
}
.rm-divider { border-top: 1px solid var(--grey-light); margin: 14px 0; }
.rm-top { text-align: center; }
.rm-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; text-align: center;
}
.rm-stat-num {
  display: block;
  font-family: 'Source Code Pro', monospace;
  font-size: 1.9rem; font-weight: 700;
  color: var(--black); line-height: 1;
}
.rm-stat-lbl {
  display: block;
  font-size: 0.54rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--grey); margin-top: 4px;
}
.rm-dist-title {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 10px;
}
.rm-dist-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 8px; align-items: center;
  margin-bottom: 5px;
  font-family: 'Source Code Pro', monospace; font-size: 0.76rem;
}
.rm-dist-label { color: var(--grey); text-align: right; white-space: nowrap; font-size: 0.68rem; }
.rm-dist-track { background: #E0D8CE; height: 22px; overflow: hidden; border-radius: 1px; }
.rm-dist-fill {
  height: 100%; background: var(--black);
  display: flex; align-items: center; padding-left: 6px;
  color: white; font-size: 0.7rem; font-weight: 700;
  transition: width 0.8s ease; min-width: 0; border-radius: 0 1px 1px 0;
}
.rm-dist-fill.hi { background: var(--correct); }
.rm-dist-loading { font-size: 0.78rem; color: var(--grey); padding: 6px 0; }
.rm-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.rm-countdown-lbl {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 3px;
}
.rm-countdown {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.55rem; font-weight: 700; color: var(--black);
}
.rm-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rm-share-btn {
  background: var(--correct); color: white; border: none;
  padding: 10px 20px;
  font-family: 'Lato', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.rm-share-btn:hover { background: #155715; }
.rm-share-btn.copied { background: var(--grey); }
.rm-ig-btn {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black); padding: 7px 12px;
  font-family: 'Lato', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.rm-ig-btn:hover { background: var(--black); color: white; }
/* top-section styles reused from game CSS */
.rm-top .score-display { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.rm-top .result-message {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--black); margin-top: 6px;
}
.rm-top .anthem-bar {
  width: 100%; max-width: 240px; height: 4px;
  background: #E0D8CE; margin: 10px auto 0; overflow: hidden;
}
.rm-top .anthem-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  width: 0%; transition: width 1.2s ease;
}
.rm-top .mute-btn {
  background: transparent; border: none; cursor: pointer; padding: 6px;
  color: var(--grey); display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Lato', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 10px;
}
.rm-top .mute-btn:hover { color: var(--black); }
.rm-top .mute-btn.muted { color: var(--red); }
.rm-top .mute-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.rm-top .score-num { font-size: 2.8rem; color: var(--red); font-family: 'Playfair Display', serif; font-weight: 900; line-height: 1; }
.rm-top .score-denom { font-size: 1.4rem; color: var(--black); font-family: 'Playfair Display', serif; font-weight: 900; }
.rm-top .score-label { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); font-weight: 700; margin-top: 3px; }
/* kto result in modal */
.rm-top .kto-result-author {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900;
  color: var(--black); margin-bottom: 4px;
}
.rm-top .kto-result-source { font-size: 0.78rem; color: var(--grey); margin-bottom: 8px; }
.rm-top .kto-win { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 900; color: var(--correct); margin-top: 6px; }
.rm-top .kto-loss { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 900; color: var(--wrong); margin-top: 6px; }
/* stat unit (%) */
.rm-stat-unit { font-size: 0.55em; vertical-align: super; font-weight: 700; }
/* dyktando result in modal */
.rm-top .dyk-top-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.rm-top .dyk-score-col { text-align: center; }
.rm-top .dyk-score { font-family: 'Source Code Pro', monospace; font-size: 1.6rem; font-weight: 700; color: var(--black); }
.rm-top .dyk-grade { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 900; color: var(--black); margin-top: 4px; }
.rm-top .dyk-grade-badge {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem; font-weight: 700;
  color: var(--red);
  width: 66px; height: 62px; flex-shrink: 0;
  border: 3.5px solid var(--red);
  border-radius: 52% 48% 55% 47% / 50% 54% 46% 52%;
  border-width: 3px 3.5px 4px 3px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg) skewX(-2deg); line-height: 1;
}
/* ad slot in result modal — reserved space prevents CLS when AdSense fills it */
.rm-ad-slot {
  min-height: 250px;
  width: 300px;
  margin: 14px auto;
  overflow: hidden;
}
.rm-ad-slot ins.adsbygoogle {
  display: block !important;
  width: 300px;
  min-height: 250px;
}

/* ── In-feed ad (index.html game grid) ───────────── */
.game-card-ad {
  min-height: 100px;
  overflow: hidden;
}
.game-card-ad ins.adsbygoogle {
  display: block !important;
  width: 100%;
  min-height: 100px;
}


/* ── Site footer ─────────────────────────────────── */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--grey-light);
  padding: 20px 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.site-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer-links a {
  font-size: 0.75rem;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-footer-links a:hover { color: var(--black); }

.site-footer-copy {
  font-size: 0.68rem;
  color: var(--grey-light);
  letter-spacing: 0.05em;
}

.site-footer-ai {
  font-size: 0.65rem;
  color: var(--grey-light);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── Source attribution ──────────────────────── */
.result-source {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 10px;
  display: block;
  text-align: center;
}
.result-source a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.result-source a:hover { text-decoration: underline; }
