/* ================================================================
   ADS ADDON CSS  v3.0  —  Reversi: Stone & Shadow
================================================================ */

.ads-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(4,6,3,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s ease;
}
.ads-overlay--on { opacity: 1; }

.ads-popup {
  width: 380px; display: flex; flex-direction: column;
  background: #0b0f09;
  border: 1px solid rgba(201,168,76,.32);
  box-shadow: 0 0 0 1px rgba(201,168,76,.08), 0 32px 80px rgba(0,0,0,.98);
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.ads-overlay--on .ads-popup { transform: translateY(0) scale(1); }

/* Header */
.ads-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(201,168,76,.14);
  background: rgba(201,168,76,.04);
}
.ads-eyebrow {
  font-family: 'Cinzel','Georgia',serif; font-size: .72rem;
  font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(201,168,76,.65);
}
.ads-skip {
  font-family: 'Cinzel','Georgia',serif; font-size: .68rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid transparent;
  background: transparent; transition: all .25s;
}
.ads-skip--disabled { color: rgba(201,168,76,.3); border-color: rgba(201,168,76,.12); cursor: not-allowed; }
.ads-skip--ready    { color: #c9a84c; border-color: rgba(201,168,76,.45); cursor: pointer; }
.ads-skip--ready:hover { color: #fff; border-color: #c9a84c; background: rgba(201,168,76,.1); }

/* Ad placeholder — 300×250 Medium Rectangle (Google AdSense standard) */
.ads-body {
  display: flex; align-items: center; justify-content: center;
  background: #0a0d09; padding: 20px 0;
  border-top: 1px solid rgba(201,168,76,.08);
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.ads-placeholder {
  position: relative;
  width: 300px; height: 250px;
  background: #0d1109;
  border: 1px dashed rgba(201,168,76,.22);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}

/* Corner bracket decorations */
.ads-bracket {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(201,168,76,.45); border-style: solid;
}
.ads-bracket--tl { top: 6px;  left: 6px;  border-width: 1px 0 0 1px; }
.ads-bracket--tr { top: 6px;  right: 6px; border-width: 1px 1px 0 0; }
.ads-bracket--bl { bottom: 6px; left: 6px;  border-width: 0 0 1px 1px; }
.ads-bracket--br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

/* Diagonal cross lines */
.ads-cross { position: absolute; inset: 0; pointer-events: none; }
.ads-cross-line {
  position: absolute; background: rgba(201,168,76,.06);
  width: 100%; height: 1px; top: 50%; left: 0;
  transform-origin: center center;
}
.ads-cross-line--1 { transform: rotate(39.8deg) scaleX(1.28); }
.ads-cross-line--2 { transform: rotate(-39.8deg) scaleX(1.28); }

/* Center content */
.ads-placeholder-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.ads-placeholder-label {
  font-family: 'Cinzel','Georgia',serif; font-size: .52rem;
  font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(201,168,76,.35);
  border: 1px solid rgba(201,168,76,.15);
  padding: 3px 10px;
}
.ads-placeholder-size {
  font-family: 'Cinzel','Georgia',serif; font-size: 1.55rem;
  font-weight: 700; letter-spacing: .04em;
  color: rgba(201,168,76,.55); line-height: 1;
}
.ads-placeholder-type {
  font-family: 'Crimson Pro','Georgia',serif; font-size: .78rem;
  font-style: italic; color: rgba(201,168,76,.3); letter-spacing: .06em;
}
.ads-placeholder-note {
  font-family: 'Crimson Pro','Georgia',serif; font-size: .72rem;
  color: rgba(201,168,76,.2); margin-top: 4px;
  font-style: italic; letter-spacing: .04em;
}

/* Corner bracket decorations */
.ads-bracket {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(201,168,76,.45); border-style: solid;
}
.ads-bracket--tl { top: 6px;  left: 6px;  border-width: 1px 0 0 1px; }
.ads-bracket--tr { top: 6px;  right: 6px; border-width: 1px 1px 0 0; }
.ads-bracket--bl { bottom: 6px; left: 6px;  border-width: 0 0 1px 1px; }
.ads-bracket--br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

/* Diagonal cross lines */
.ads-cross {
  position: absolute; inset: 0; pointer-events: none;
}
.ads-cross-line {
  position: absolute; background: rgba(201,168,76,.06);
  width: 100%; height: 1px; top: 50%; left: 0;
  transform-origin: center center;
}
.ads-cross-line--1 { transform: rotate(39.8deg) scaleX(1.28); }
.ads-cross-line--2 { transform: rotate(-39.8deg) scaleX(1.28); }

/* Center content */
.ads-placeholder-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.ads-placeholder-label {
  font-family: 'Cinzel','Georgia',serif; font-size: .52rem;
  font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(201,168,76,.35);
  border: 1px solid rgba(201,168,76,.15);
  padding: 3px 10px;
}
.ads-placeholder-size {
  font-family: 'Cinzel','Georgia',serif; font-size: 1.55rem;
  font-weight: 700; letter-spacing: .04em;
  color: rgba(201,168,76,.55);
  line-height: 1;
}
.ads-placeholder-type {
  font-family: 'Crimson Pro','Georgia',serif; font-size: .78rem;
  font-style: italic; color: rgba(201,168,76,.3);
  letter-spacing: .06em;
}
.ads-placeholder-note {
  font-family: 'Crimson Pro','Georgia',serif; font-size: .72rem;
  color: rgba(201,168,76,.2); margin-top: 4px;
  font-style: italic; letter-spacing: .04em;
}

/* Footer */
.ads-footer {
  padding: 13px 18px 15px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  border-top: 1px solid rgba(201,168,76,.1);
}
.ads-ornament { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.ads-orn-line { flex: 1; max-width: 60px; height: 1px; background: linear-gradient(90deg,transparent,rgba(201,168,76,.25),transparent); }
.ads-orn-gem  { width: 5px; height: 5px; background: rgba(201,168,76,.45); transform: rotate(45deg); flex-shrink: 0; }
.ads-note {
  font-family: 'Crimson Pro','Georgia',serif; font-size: .88rem;
  font-style: italic; color: rgba(201,168,76,.5); text-align: center;
}

@media (max-width: 420px) {
  .ads-popup { width: 100%; }
  .ads-iframe { height: 260px; }
}
