/* SroWay / SroCave comment event — popup + article */

.roc-ce-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: roc-ce-fade 0.35s ease;
}
.roc-ce-overlay[hidden] { display: none !important; }
@keyframes roc-ce-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.roc-ce-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.22), transparent 55%),
    linear-gradient(165deg, #1a1c24 0%, #0e1016 55%, #12141c 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35);
  padding: 22px 20px 16px;
  color: #ececf2;
  animation: roc-ce-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes roc-ce-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.roc-ce-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8c8d0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.roc-ce-modal__x:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.roc-ce-modal__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 14px;
}
.roc-ce-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.roc-ce-logo--sm {
  padding: 6px 8px;
  flex: 0 0 auto;
}
.roc-ce-logo img,
.roc-ce-modal__logos img {
  max-height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.roc-ce-logo--sm img {
  max-height: 28px;
  max-width: 72px;
}
.roc-ce-modal__plus {
  color: #d4af37;
  font-weight: 800;
  font-size: 18px;
  opacity: 0.85;
}

.roc-ce-modal__eyebrow {
  text-align: center;
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
  font-weight: 700;
}
.roc-ce-modal__title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}
.roc-ce-modal__lead {
  text-align: center;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #a8a8b4;
}

.roc-ce-countdown {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 12px 10px 14px;
  margin-bottom: 14px;
}
.roc-ce-countdown__label {
  text-align: center;
  font-size: 11px;
  color: #b8a060;
  margin-bottom: 10px;
  font-weight: 600;
}
.roc-ce-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.roc-ce-countdown__cell {
  text-align: center;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
  padding: 8px 4px;
}
.roc-ce-countdown__cell b {
  display: block;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: #f0d78c;
  font-weight: 800;
  line-height: 1.1;
}
.roc-ce-countdown__cell span {
  font-size: 10px;
  color: #8a8a96;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roc-ce-countdown.is-done .roc-ce-countdown__label {
  color: #7dcea0;
}

.roc-ce-prizes {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.roc-ce-prize {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.roc-ce-prize img {
  width: 56px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.roc-ce-prize strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.roc-ce-prize span {
  font-size: 12px;
  color: #a8a8b4;
}
.roc-ce-prize span b { color: #f0d78c; }

.roc-ce-rules {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #c4c4ce;
}
.roc-ce-rules li { margin: 4px 0; }
.roc-ce-rules strong { color: #f0d78c; }

.roc-ce-modal__actions {
  display: grid;
  gap: 8px;
}
.roc-ce-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.roc-ce-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.roc-ce-btn--gold {
  background: linear-gradient(180deg, #f0d78c, #d4af37 55%, #8a6a1a);
  color: #1a1408 !important;
}
.roc-ce-btn--dark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f0d78c !important;
}
.roc-ce-modal__later {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #7a7a88;
  font-size: 12px;
  cursor: pointer;
  padding: 6px;
}
.roc-ce-modal__later:hover { color: #c8c8d0; }

/* News article extras */
.roc-ce-article__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.roc-ce-article__logos img {
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
}
.roc-ce-article__amp {
  font-size: 1.4rem;
  color: #d4af37;
  font-weight: 800;
}
.roc-ce-article__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.roc-ce-cd {
  font-weight: 800;
  color: #d4af37;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .roc-ce-modal { padding: 18px 14px 12px; }
  .roc-ce-modal__title { font-size: 1.15rem; }
  .roc-ce-countdown__cell b { font-size: 1.15rem; }
}
