/* ===========================================================
   ANNOUNCEMENTS RUNTIME v2 — 5 types CSS
   popup / marquee / bubble / notice / countdown
   Mz 2026-05-29
   =========================================================== */

/* ── A. POPUP ───────────────────────────────────────────────── */
.ann-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.ann-popup-overlay.ann-show { opacity: 1; pointer-events: auto; }
.ann-popup {
  position: relative;
  max-width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: #0E1621; color: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 12px;
  background-size: cover; background-position: center;
  transform: scale(0.92);
  transition: transform 0.2s ease;
}
.ann-popup-overlay.ann-show .ann-popup { transform: scale(1); }
.ann-popup-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.ann-popup-content { font-size: 13px; line-height: 1.55; opacity: 0.92; white-space: pre-wrap; }
.ann-popup-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px;
  font-size: 14px; font-weight: 600;
  background: #F5A623; color: #0E1621;
  border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  margin-top: 4px; align-self: center;
  letter-spacing: 0.04em;
}
.ann-popup-cta:hover { filter: brightness(1.05); }
.ann-popup-close {
  position: absolute;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.4); color: #fff;
  border: none; border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ann-popup-close.ann-pos-top-right    { top: 10px; right: 10px; }
.ann-popup-close.ann-pos-bottom-right { bottom: 10px; right: 10px; }
.ann-popup-close.ann-pos-bottom-center { bottom: -44px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.15); }

/* ── B. MARQUEE ─────────────────────────────────────────────── */
.ann-marquee {
  position: relative;
  width: 100%;
  background: #F5A623; color: #0E1621;
  overflow: hidden;
  display: flex; align-items: center;
  z-index: 1000;
}
.ann-marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: ann-marquee-roll linear infinite;
  padding-left: 100%;
}
.ann-marquee-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.ann-marquee-emoji { font-size: 14px; line-height: 1; }
@keyframes ann-marquee-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ann-marquee-close {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.15); color: inherit;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ── C. BUBBLE ──────────────────────────────────────────────── */
.ann-bubble-wrap {
  position: fixed;
  z-index: 9000;
  display: flex; flex-direction: column;
  align-items: flex-end;
}
.ann-corner-bl, .ann-corner-tl { align-items: flex-start; }
.ann-corner-tr, .ann-corner-tl { flex-direction: column-reverse; }

.ann-bubble-btn {
  border: none;
  border-radius: 50%;
  background: #F5A623;
  color: #0E1621;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.ann-anim-bounce .ann-bubble-btn  { animation: ann-bounce 1.6s ease-in-out infinite; }
.ann-anim-breathe .ann-bubble-btn { animation: ann-breathe 2.2s ease-in-out infinite; }
@keyframes ann-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes ann-breathe {
  0%,100% { transform: scale(1);   box-shadow: 0 4px 14px rgba(245,166,35,0.4); }
  50%     { transform: scale(1.08); box-shadow: 0 6px 22px rgba(245,166,35,0.65); }
}
.ann-bubble-card {
  width: 260px; padding: 16px;
  background: #fff; color: #0E1621;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  margin-bottom: 8px;
  display: none;
  position: relative;
}
.ann-bubble-card.ann-open { display: block; }
.ann-corner-tr .ann-bubble-card, .ann-corner-tl .ann-bubble-card {
  margin-bottom: 0; margin-top: 8px;
}
.ann-bubble-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ann-bubble-content { font-size: 12px; line-height: 1.5; color: #444; white-space: pre-wrap; margin-bottom: 10px; }
.ann-bubble-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px;
  background: #F5A623; color: #0E1621;
  font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.ann-bubble-card-close {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: transparent; border: none;
  font-size: 14px; line-height: 1;
  color: #9CA3AF; cursor: pointer;
}

/* ── D. NOTICE ──────────────────────────────────────────────── */
.ann-notice {
  position: relative;
  width: 100%;
  background: #0EA5E9; color: #fff;
  z-index: 998;
  padding: 0 44px;
  display: flex; align-items: center;
  overflow: hidden;
}
.ann-notice-inner {
  flex: 1; display: flex; flex-direction: column;
}
.ann-notice-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  padding: 4px 0;
}
.ann-notice-icon { width: 18px; text-align: center; font-weight: 700; flex-shrink: 0; }
.ann-notice-text { flex: 1; }
.ann-notice-link {
  flex-shrink: 0; padding: 4px 8px;
  background: rgba(255,255,255,0.18); color: inherit;
  border-radius: 4px; font-size: 12px; font-weight: 600;
  text-decoration: none;
}
.ann-notice-mode-stack .ann-notice-row { display: flex !important; }
.ann-notice-close {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.15); color: inherit;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ── E. COUNTDOWN ───────────────────────────────────────────── */
.ann-countdown {
  width: 100%;
  background: #0E1621; color: #fff;
  padding: 14px 20px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center;
  z-index: 999;
}
.ann-cd-pos-floating_bottom {
  position: fixed; bottom: 0; left: 0; right: 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
}
.ann-cd-title { font-size: 15px; font-weight: 700; }
.ann-cd-subtitle { font-size: 12px; opacity: 0.85; }
.ann-cd-digits {
  display: flex; gap: 6px;
  margin: 4px 0;
}
.ann-cd-cell {
  display: flex; flex-direction: column; align-items: center;
}
.ann-cd-num {
  min-width: 38px;
  padding: 6px 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px; font-weight: 700;
  background: #F5A623; color: #0E1621;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.ann-cd-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.6; margin-top: 2px;
}
.ann-cd-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px;
  background: #F5A623; color: #0E1621;
  font-size: 12px; font-weight: 700;
  border-radius: 6px; cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
