/* ============================================================
   Puzzle dla Dzieci — nowoczesny design (kids-friendly)
   Wspólny system designu z Kolorowankami: gradienty, miękkie
   cienie, duże zaokrąglenia, płynne animacje.
   ============================================================ */

:root {
  --bg-top: #eef6ff;
  --bg-mid: #f4f0ff;
  --ink: #40325e;
  --muted: #8b81a8;
  --brand: #ff7a59;
  --brand2: #ff9d5c;
  --brand-dark: #e85d3d;
  --blue: #4fb7e8;
  --blue2: #74cdf7;
  --blue-dark: #2f9dd0;
  --green: #5fd068;
  --green-dark: #41ac4a;
  --yellow: #ffd54d;
  --card: #ffffff;
  --shadow-lg: 0 10px 22px rgba(103, 80, 164, .10);
  --shadow-md: 0 5px 12px rgba(103, 80, 164, .08);
  --shadow-sm: 0 2px 6px rgba(103, 80, 164, .06);
  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 16px;
  --font: "Fredoka", "Baloo 2", "Comic Sans MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 213, 77, .35), transparent 60%),
    radial-gradient(1000px 800px at -10% 110%, rgba(126, 217, 87, .28), transparent 55%),
    radial-gradient(900px 700px at 110% 100%, rgba(255, 126, 179, .25), transparent 55%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid));
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* pływające dekoracje */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 220px; height: 220px;
  left: -70px; top: -60px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(255,158,196,.55));
}
body::after {
  width: 180px; height: 180px;
  right: -50px; bottom: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.95), rgba(116,205,247,.55));
}

/* ------------------- ekrany ------------------- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  z-index: 1;
}
.screen:not(.hidden) { animation: screenIn .42s cubic-bezier(.22, 1, .36, 1); }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.hidden { display: none !important; }

/* ------------------- przyciski ------------------- */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 1.05rem;
  box-shadow: 0 6px 0 var(--brand-dark), 0 14px 24px rgba(255, 122, 89, .30);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--brand-dark), 0 6px 12px rgba(255, 122, 89, .25);
}
.btn.round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm), inset 0 -2px 0 rgba(103, 80, 164, .08);
  flex-shrink: 0;
  transition: transform .14s ease;
}
.btn.round:active { transform: scale(.9); }
.btn.round.off { opacity: .45; }
.btn.big { font-size: 1.2rem; padding: 15px 26px; }
.btn.primary { background: linear-gradient(135deg, #7ed957, var(--green)); box-shadow: 0 6px 0 var(--green-dark), 0 14px 24px rgba(95, 208, 104, .30); }
.btn.primary:active { box-shadow: 0 2px 0 var(--green-dark); }
.btn.blue    { background: linear-gradient(135deg, var(--blue2), var(--blue)); box-shadow: 0 6px 0 var(--blue-dark), 0 14px 24px rgba(79, 183, 232, .30); }
.btn.blue:active { box-shadow: 0 2px 0 var(--blue-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ------------------- menu ------------------- */
.menu-header { text-align: center; margin-top: 8px; }
.game-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--brand), #ff5f8f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .8));
  animation: bob 3s ease-in-out infinite;
}
.game-subtitle {
  margin: 6px 0 2px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* menu: kategorie na górze — mniejsze, zawijane w rzędy (jak w kolorowankach) */
.category-chips.wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 660px;
  padding: 2px 2px 8px;
  overflow: visible;
}
.category-chips.wrap .chip {
  padding: 7px 12px;
  font-size: .86rem;
}
.create-short {
  padding: 10px 22px;
  font-size: 1rem;
  margin-bottom: 2px;
}
/* box z obrazkami wybranej kategorii (pod kategoriami) */
.cat-section {
  background: rgba(255, 255, 255, .55);
  border-radius: var(--r-lg);
  padding: 14px 12px 6px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 660px;
}
.cat-title {
  margin: 0 4px 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform .14s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chip:active { transform: scale(.94); }
.cat-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  outline: 3px solid rgba(79, 183, 232, .55);
  outline-offset: 1px;
}

/* spójne zaznaczenie: niebieska obwódka zamiast cieni */
.btn:active,
.btn:focus-visible,
.chip:active,
.chip:focus-visible {
  outline: 3px solid rgba(79, 183, 232, .75);
  outline-offset: 1px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 660px;
  padding: 4px 2px 14px;
}
.thumb-card {
  background: var(--card);
  border: none;
  border-radius: var(--r-md);
  padding: 9px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease;
}
.thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.thumb-card:active { transform: scale(.94); }
.thumb-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(145deg, #fff2d9, #ffe1ec 60%, #e3f3ff);
  border-radius: var(--r-sm);
  display: block;
  pointer-events: none;
  box-shadow: inset 0 2px 6px rgba(103, 80, 164, .06);
}
.thumb-label {
  display: block;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty-note { color: var(--muted); font-size: 1rem; }

/* ------------------- kreator AI ------------------- */
.sub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
}
.sub-title { font-size: 1.5rem; font-weight: 700; margin: 0; flex: 1; }
.hud-spacer { flex: 1; }

.create-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 600px;
  margin: 2px 0;
  text-align: center;
}
.theme-input {
  width: 100%;
  max-width: 600px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 20px;
  border: 3px solid rgba(79, 183, 232, .5);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.theme-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(79, 183, 232, .18), var(--shadow-sm);
}
.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 600px;
}
.create-status {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 1.4em;
  text-align: center;
  max-width: 600px;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 4px solid rgba(79, 183, 232, .25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------- wybór trybu i trudności ------------------- */
.diff-preview {
  width: 200px;
  height: 200px;
  border-radius: var(--r-lg);
  padding: 8px;
  background: linear-gradient(135deg, #fff, #f3f7ff);
  box-shadow: var(--shadow-lg), inset 0 2px 8px rgba(103, 80, 164, .06);
}
.diff-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(145deg, #fff2d9, #ffe1ec 60%, #e3f3ff);
  border-radius: 22px;
  display: block;
}
.diff-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 0;
}
.mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}
.btn.mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-md);
}
.btn.mode.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 8px 20px rgba(255, 122, 89, .35);
}
.mode-emoji { font-size: 1.9rem; }
.mode-name  { font-size: 1.08rem; font-weight: 600; }
.mode-label { font-size: .82rem; font-weight: 500; opacity: .8; }
.diff-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  padding: 8px 14px;
}
.btn.diff {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 118px;
  min-height: 118px;
  padding: 10px 6px;
  font-size: 1.15rem;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: var(--r-md);
}
.btn.diff:nth-child(1) { color: #2f9d4f; }
.btn.diff:nth-child(2) { color: #d98100; }
.btn.diff:nth-child(3) { color: #e85d3d; }
.btn.diff:nth-child(4) { color: #7a4de0; }
.btn.diff:nth-child(5) { color: #b33b8f; }
.btn.diff:active { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; }
.diff-grid { width: 62px; height: 62px; pointer-events: none; }
.diff-grid svg { width: 100%; height: 100%; display: block; }
.diff-emoji { font-size: 1.5rem; }
.diff-num   { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.diff-label { font-size: .78rem; font-weight: 500; opacity: .8; }

/* karty ucięte na krawędzi okna są ukrywane (nie pokazujemy połówek) */
.card-cut { opacity: 0 !important; pointer-events: none !important; }

/* przełącznik języka: flaga w prawym górnym rogu + rozwijane menu */
.lang-switch {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 30;
}
.lang-btn {
  background: rgba(255, 255, 255, .92);
  border: none;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-menu {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(103, 80, 164, .14);
  min-width: 132px;
}
.lang-menu.hidden { display: none; }
.lang-menu button {
  background: none;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover { background: #f2f6ff; }
.lang-menu button.active {
  background: #e8f4ff;
  outline: 2px solid rgba(79, 183, 232, .55);
}
.flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 0 2.5px rgba(0, 0, 0, .12);
}
.flag svg { width: 100%; height: 100%; display: block; transform: scale(1.55); }
.lang-btn .flag { width: 32px; height: 32px; }
.lang-btn { padding: 3px; }

/* gwiazdki postępu na kartach ukończonych układanek */
.thumb-card { position: relative; }
.stars-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, .95);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .95rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(103, 80, 164, .18);
  pointer-events: none;
}

/* przycisk i modal profilu */
.profile-btn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .92);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-code {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--blue-dark);
  background: #eef7ff;
  border-radius: 14px;
  padding: 12px 20px;
  margin: 10px 0;
  user-select: all;
}
.profile-input {
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid rgba(103, 80, 164, .20);
  border-radius: 14px;
  font-family: inherit;
}
.profile-status { font-size: .95rem; color: var(--muted); min-height: 1.4em; margin-top: 8px; }

/* ------------------- ekran gry ------------------- */
.hud {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}
.hud-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.status-bar {
  display: flex;
  gap: 14px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--muted);
}

#screen-game { overflow: hidden; }

.play-area {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  touch-action: none;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.12));
  box-shadow: inset 0 2px 10px rgba(103, 80, 164, .05);
}

.board {
  position: absolute;
  border-radius: 18px;
  background-color: #f6f9fd;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 12px 30px rgba(103, 80, 164, .18),
    0 2px 6px rgba(103, 80, 164, .10);
  border: 4px solid #fff;
  overflow: hidden;  /* ułożone klocki nigdy nie wystają poza krawędź planszy */
}

.tray {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 245, 255, .90));
  border: 1px solid rgba(103, 80, 164, .10);
  box-shadow: inset 0 2px 8px rgba(103, 80, 164, .05);
  overflow: visible;  /* klocki mogą leżeć także nad planszą (pełne pole) */
}

.piece {
  position: absolute;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 2;
  filter: drop-shadow(0 3px 8px rgba(45, 32, 92, .28));
  transition: transform .2s ease;
}
.piece.dragging {
  filter: drop-shadow(0 14px 20px rgba(45, 32, 92, .34));
  z-index: 10;
  cursor: grabbing;
}
.piece.placed {
  filter: none;
  z-index: 1;
  cursor: default;
}
.piece.pop { animation: pop .3s ease; }
@keyframes pop {
  0%   { transform: scale(.6); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.piece.shake { animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ------------------- nakładki ------------------- */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(40, 30, 70, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  padding: 20px;
}
.overlay img {
  max-width: 86vw;
  max-height: 72vh;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(30, 20, 60, .45);
  border: 6px solid #fff;
  background: #fff;
}
.overlay-hint {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  margin-top: 14px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.win-card {
  background: #fff;
  border-radius: 32px;
  padding: 26px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(30, 20, 60, .35);
  animation: popIn .45s cubic-bezier(.22, 1, .36, 1);
  max-width: 92vw;
}
@keyframes popIn {
  0%   { transform: scale(.5) translateY(20px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.modal-emoji { font-size: 2.8rem; }
.win-stars { font-size: 2.2rem; letter-spacing: 6px; }
.win-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 6px 0;
  background: linear-gradient(135deg, var(--brand), #ff5f8f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.win-text  { font-size: 1.02rem; color: var(--muted); margin: 0 0 16px; white-space: pre-line; }
.win-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------- konfetti ------------------- */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); }
}

/* ------------------- większe ekrany ------------------- */
@media (min-width: 700px) {
  .menu-grid   { grid-template-columns: repeat(4, 1fr); max-width: 800px; }
  .category-chips, .cat-section { max-width: 800px; }
  .game-title  { font-size: 2.7rem; }
  .diff-buttons, .mode-buttons { max-width: 760px; }
}

/* ------------------- nakładka reklamowa (placeholder) ------------------- */
.profile-sep {
  border: none;
  border-top: 1px dashed rgba(103, 80, 164, .25);
  margin: 10px 0;
}
.profile-status.logged { color: var(--green-dark); }
.profile-status.premium { color: #8a6d00; font-weight: 600; }
.win-text.small { font-size: .92rem; }
.btn.danger-ghost {
  background: transparent;
  color: #c0392b;
  box-shadow: none;
  font-size: .88rem;
  text-decoration: underline;
  padding: 8px 12px;
}
.btn.privacy-link {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: .82rem;
  text-decoration: underline;
  padding: 4px 10px;
  margin-top: 8px;
}
.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 25, 60, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ad-overlay.hidden { display: none; }
.ad-card {
  background: #fff;
  border-radius: 26px;
  padding: 26px 22px 22px;
  width: min(92vw, 380px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  animation: ad-pop .3s ease;
}
@keyframes ad-pop {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ad-badge {
  display: inline-block;
  background: #ffd54d;
  color: #6b4d00;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.ad-emoji { font-size: 3.4rem; animation: ad-bounce 1.6s ease-in-out infinite; }
@keyframes ad-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.ad-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 4px;
}
.ad-timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  min-height: 44px;
}
.ad-close { margin: 8px auto 0; min-width: 180px; }
