.iab-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 10, 0.42);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.iab-overlay.hidden { display: none; }
.iab-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 18px 50px var(--shadow);
  padding: 24px 22px 22px;
  text-align: center;
  animation: pop .35s cubic-bezier(.2,1.3,.4,1) both;
}
.iab-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.iab-text b { color: var(--accent); font-weight: 800; }
.iab-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
}
.iab-close:active { transform: scale(0.9); }
.iab-btn {
  margin-top: 10px;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--accent-hover);
  transition: transform .08s ease, box-shadow .08s ease;
}
.iab-btn[hidden] { display: none; }
.iab-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-hover); }

/* ===== Desktop „ez egy mobiljáték” popup ===== */
.desktop-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.desktop-overlay.hidden { display: none; }
.desktop-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--panel);
  border: 3px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 22px 60px var(--shadow);
  padding: 30px 30px 28px;
  text-align: center;
  color: var(--text);
  animation: pop .35s cubic-bezier(.2,1.3,.4,1) both;
}
.dm-emoji {
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 8px var(--shadow));
}
.dm-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.dm-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
}
.dm-text b { color: var(--accent); font-weight: 800; }
.dm-qr-wrap {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--panel-border);
  box-shadow: 0 6px 16px -6px var(--shadow);
}
.dm-qr {
  display: block;
  width: 180px;
  height: 180px;
  image-rendering: pixelated;   /* éles QR-modulok */
}
.dm-qr-cap {
  margin: 14px 4px 0;
  font-size: 14px;
  line-height: 1.5;
}
.dm-qr-cap b { color: var(--accent); font-weight: 800; }
.dm-btn {
  margin-top: 20px;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  background: rgba(224, 122, 63, 0.10);
  border: 2px solid var(--accent);
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(201, 101, 44, 0.35);
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease, color .12s ease;
}
.dm-btn:hover { background: var(--accent); color: #fff; }
.dm-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(201, 101, 44, 0.35); }
