/*!
 * Teamz Lab games — DEV-ONLY ad preview simulator styles.
 * Paired with tz-game-ads-preview.js. Never shipped behavior on live web
 * (the JS gates rendering to dev hosts / ?adsim=1).
 */

#tz-adsim-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above dock, modals, everything */
  pointer-events: none;
}

#tz-adsim-root .tz-adsim-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: tz-adsim-fade 0.18s ease-out;
}

@keyframes tz-adsim-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tz-adsim-sheet {
  width: min(420px, 92vw);
  max-height: 92vh;
  overflow: auto;
  background: #0f1626;
  color: #e8edf7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  animation: tz-adsim-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes tz-adsim-pop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.tz-adsim-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd27a;
  background: rgba(255, 184, 71, 0.12);
  border: 1px solid rgba(255, 184, 71, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.tz-adsim-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7);
  animation: tz-adsim-pulse 1.4s infinite;
}

@keyframes tz-adsim-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 179, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}

/* Shimmering fake creative — mimics a real ad loading. */
.tz-adsim-creative {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #1b2536;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tz-adsim-rewarded .tz-adsim-creative {
  height: 240px;
}

.tz-adsim-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  background-size: 200% 100%;
  animation: tz-adsim-shimmer 1.3s linear infinite;
}

@keyframes tz-adsim-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.tz-adsim-creative-label {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 237, 247, 0.5);
  letter-spacing: 0.04em;
}

.tz-adsim-meta {
  margin: 14px 0 4px;
  display: grid;
  gap: 8px;
}

.tz-adsim-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.tz-adsim-meta dt {
  color: rgba(232, 237, 247, 0.55);
  font-weight: 600;
}

.tz-adsim-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tz-adsim-skip {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8edf7;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tz-adsim-skip--ready {
  background: #4a86e8;
}

.tz-adsim-actions {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.tz-adsim-btn {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tz-adsim-btn--watch {
  background: #1faa59;
  color: #fff;
}

.tz-adsim-btn--skip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 237, 247, 0.8);
}

/* Counting hint toast (interstitial gating not yet reached). */
.tz-adsim-hint {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  pointer-events: none;
  background: rgba(15, 22, 38, 0.94);
  color: #cfe0ff;
  border: 1px solid rgba(74, 134, 232, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  animation: tz-adsim-fade 0.18s ease-out;
}

.tz-adsim-hint--out {
  opacity: 0;
  transition: opacity 0.4s ease;
}
