/* Knightfall Idle - website ads and the cookie consent bar.

   Loaded on the landing page and the wiki only. The game client never includes
   this file. Colours follow the site palette: navy #0b1220 / gold #d9a845. */

.kf-ad {
  display: none;
  width: 100%;
  max-width: 970px;
  margin: 28px auto;
  min-height: 96px;
  box-sizing: border-box;
}

.kf-ad-live {
  min-height: 0;
  padding: 0;
}

/* Review only (?ads=preview): a dashed reserved box, never shipped to players. */
.kf-ad-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  border: 1px dashed rgba(217, 168, 69, 0.45);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.55);
  text-align: center;
}

.kf-ad-tag {
  font: 600 11px/1 "Cinzel", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9a845;
}

.kf-ad-note {
  font: 400 12px/1.4 "Inter", system-ui, sans-serif;
  color: rgba(226, 232, 240, 0.62);
}

/* Wikia-style inline box: centred with the article column, never full bleed. */
.wk-ad {
  max-width: 970px;
  margin: 26px auto;
  padding: 0 22px;
}

/* ── Consent bar ─────────────────────────────────────────────────────── */

.kf-consent {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 24px);
  width: min(720px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 168, 69, 0.5);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.98), rgba(9, 14, 26, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 4000;
}

.kf-consent-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.kf-consent-text {
  flex: 1 1 340px;
  margin: 0;
  font: 400 13px/1.5 "Inter", system-ui, sans-serif;
  color: rgba(226, 232, 240, 0.88);
}

.kf-consent-text a {
  color: #d9a845;
  text-decoration: underline;
}

.kf-consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.kf-consent-btn {
  font: 600 12px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #d9a845;
  background: linear-gradient(180deg, #e7bb5c, #c8952f);
  color: #1a1204;
  cursor: pointer;
}

.kf-consent-btn:hover {
  filter: brightness(1.08);
}

.kf-consent-btn.ghost {
  background: transparent;
  color: #d9a845;
}

.kf-consent-btn.ghost:hover {
  background: rgba(217, 168, 69, 0.12);
}

@media (max-width: 560px) {
  .kf-consent {
    bottom: 12px;
    padding: 14px;
  }

  .kf-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
