/* ============ COUNTDOWN · ADMIN ABUSE ============ */
:root{
  --rb: #FF4F8B, #FF9F43, #FFE45C, #4CE0A0, #4FB8FF, #9B6BFF, #FF6BD6;
  --rb-lin: linear-gradient(90deg, var(--rb));
  --gold: linear-gradient(180deg, #FFF6C2 0%, #FFD54A 45%, #C98A00 100%);
}
body.cdBody{ background: #160A36; }

.cdHero{
  position: relative;
  margin-top: -74px;
  padding: 140px 0 90px;
  min-height: 100vh;
  display: flex; align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 50% at 15% 20%, rgba(155,107,255,.40), transparent 70%),
    radial-gradient(50% 50% at 85% 80%, rgba(255,79,139,.25), transparent 70%),
    linear-gradient(135deg, #1A0B3D 0%, #2B1263 50%, #120A2E 100%);
}
.cdHero .container{ position: relative; z-index: 2; width: 100%; }
#cdStars{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#cdFx{ position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }

/* foto de fondo, discreta */
.cdIdol{
  position: absolute; z-index: 1; right: max(-40px, calc(50% - 760px)); bottom: 0;
  width: 420px; height: auto; opacity: .35;
  -webkit-mask-image: radial-gradient(70% 65% at 55% 40%, #000 45%, transparent 80%);
          mask-image: radial-gradient(70% 65% at 55% 40%, #000 45%, transparent 80%);
  pointer-events: none;
}

.cdLive{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.cdLive .dot{ width: 9px; height: 9px; border-radius: 50%; background: #FF4F8B; animation: ping 1.6s infinite; }
@keyframes ping{ 0%{ box-shadow: 0 0 0 0 rgba(255,79,139,.7); } 70%,100%{ box-shadow: 0 0 0 10px rgba(255,79,139,0); } }

.cdTitle{
  margin: 18px 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 9vw, 110px); line-height: .95; letter-spacing: -.045em;
  background: var(--rb-lin); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 rgba(40,14,90,.9));
  animation: rbMove 8s linear infinite;
}
@keyframes rbMove{ to{ background-position: 200% 0; } }

/* ---------- la cuenta regresiva (protagonista) ---------- */
.cdGrid{
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  max-width: 900px; margin: 44px auto 0;
}
.cdUnit{
  position: relative; padding: 30px 8px 22px; border-radius: 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.cdNum{
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(54px, 10vw, 120px); line-height: 1.1; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #7A4A00);
}
.cdNum.tick{ animation: tick .35s ease-out; }
@keyframes tick{ from{ transform: translateY(-8px); opacity: .3; } }
.cdLabel{ margin-top: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.cdDone{ display: none; margin: 26px auto 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.5vw, 36px);
  background: var(--rb-lin); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cdHero.is-done .cdDone{ display: block; }

.cdMeta{ display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.cdChip{
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
  font: inherit; font-weight: 700; font-size: 14.5px;
}
.cdChip i{ color: #FFD54A; }
button.cdChip{ cursor: pointer; transition: background .2s; }
button.cdChip:hover{ background: rgba(255,255,255,.14); }

.cdCtas{ display: flex; justify-content: center; margin-top: 26px; }
.cdBtn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 16px; color: #2B1263; text-decoration: none;
  background: var(--gold); box-shadow: 0 5px 0 #9A6600;
  transition: transform .15s ease;
}
.cdBtn:hover{ transform: translateY(-2px); }
.cdBtn:active{ transform: translateY(3px); box-shadow: 0 2px 0 #9A6600; }

.cdToast{ position: fixed; left: 50%; bottom: 28px; z-index: 10000; translate: -50% 120px; padding: 12px 20px; border-radius: 999px; font-weight: 800; color: #2B1263; background: var(--gold); transition: translate .35s ease; }
.cdToast.show{ translate: -50% 0; }

body.cdBody .topbar:not(.is-scrolled) .nav a,
body.cdBody .topbar:not(.is-scrolled) .brandText{ color: #fff; }

@media (max-width: 1280px){ .cdIdol{ display: none; } }
@media (max-width: 640px){
  .cdHero{ padding: 110px 0 64px; }
  .cdGrid{ grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
  .cdUnit{ border-radius: 20px; padding: 22px 6px 16px; }
}
@media (prefers-reduced-motion: reduce){
  .cdTitle, .cdNum.tick, .cdLive .dot{ animation: none; }
}

/* =================== TOQUE PREMIUM =================== */
:root{
  --rb-soft: linear-gradient(90deg, #FF7AA8, #FFB86B, #FFE27A, #7FE6B5, #7CC8FF, #A98BFF, #FF8AD8, #FF7AA8);
  --gold-line: linear-gradient(90deg, rgba(255,213,74,0), #FFE9A3 30%, #FFD54A 50%, #FFE9A3 70%, rgba(255,213,74,0));
  --glass: rgba(24, 12, 56, .62);
}
@property --ang{ syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes angSpin{ to{ --ang: 360deg; } }

/* resplandor arcoíris en el horizonte */
.cdHero::after{
  content: ""; position: absolute; z-index: 0; left: 10%; right: 10%; bottom: -180px; height: 300px;
  background: var(--rb-soft); background-size: 200% 100%; filter: blur(90px); opacity: .35; border-radius: 50%;
  animation: rbMove 14s linear infinite;
}
/* luz suave detrás del título */
.cdTitle{ position: relative; text-shadow: none; }
.cdHero .container::before{
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(720px, 90vw); height: 220px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255,213,74,.16), transparent); pointer-events: none;
}
/* línea dorada bajo el título */
.cdTitle::after{
  content: ""; display: block; width: min(380px, 60%); height: 1px; margin: 26px auto 0;
  background: var(--gold-line); opacity: .9;
}

/* tarjetas: vidrio oscuro + borde arcoíris girando lento + filo dorado arriba */
.cdUnit{
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(40,20,86,.85), rgba(20,10,46,.85)) padding-box,
    conic-gradient(from var(--ang), #FF7AA8, #FFB86B, #FFE27A, #7FE6B5, #7CC8FF, #A98BFF, #FF8AD8, #FF7AA8) border-box;
  animation: angSpin 10s linear infinite;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 40px rgba(169,139,255,.12);
}
.cdUnit::before{
  content: ""; position: absolute; left: 22%; right: 22%; top: -1px; height: 2px; border-radius: 2px;
  background: var(--gold-line); box-shadow: 0 0 16px rgba(255,213,74,.7);
}
/* dorado con brillo que recorre los números */
.cdNum{
  background: linear-gradient(100deg, #C98A00 0%, #FFD54A 25%, #FFF6C2 45%, #FFD54A 60%, #C98A00 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldSheen 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 0 #6E4200) drop-shadow(0 0 22px rgba(255,213,74,.25));
}
.cdNum.tick{ animation: tick .35s ease-out, goldSheen 5s ease-in-out infinite; }
@keyframes goldSheen{ 0%,100%{ background-position: 100% 0; } 50%{ background-position: 0 0; } }
.cdLabel{ color: rgba(255,233,163,.75); }

/* chips con filo dorado */
.cdChip{ background: rgba(24,12,56,.55); border-color: rgba(255,213,74,.28); backdrop-filter: blur(8px); }
button.cdChip:hover{ border-color: rgba(255,213,74,.6); background: rgba(255,213,74,.1); }

/* botón con destello */
.cdBtn{ position: relative; overflow: hidden; box-shadow: 0 5px 0 #9A6600, 0 14px 40px rgba(255,213,74,.3); }
.cdBtn::after{ content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: btnShine 3.5s ease-in-out infinite; }
@keyframes btnShine{ 60%,100%{ left: 130%; } }

/* ===== TOPBAR dorada-arcoíris (solo esta página) ===== */
body.cdBody .topbarInner{
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    conic-gradient(from var(--ang), #FFD54A, #FF7AA8, #A98BFF, #7CC8FF, #7FE6B5, #FFE27A, #FFD54A) border-box !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), 0 0 30px rgba(255,213,74,.12) !important;
  animation: angSpin 12s linear infinite;
}
body.cdBody .topbar .nav a, body.cdBody .topbar .brandText{ color: rgba(255,255,255,.85) !important; }
body.cdBody .topbar .nav a:hover{ color: #FFE27A !important; }
body.cdBody .topbar .navDash{
  color: #2B1263 !important; background: linear-gradient(180deg, #FFF0B0, #FFD54A 55%, #E0A400) !important;
  box-shadow: 0 3px 0 #9A6600, 0 0 18px rgba(255,213,74,.35) !important;
}
body.cdBody .topbar .loginTop{
  color: #fff !important; border: 1px solid transparent !important;
  background: linear-gradient(#24104F, #24104F) padding-box, var(--rb-soft) border-box !important;
}
body.cdBody .topbar .menuBtn{ background: rgba(255,213,74,.14) !important; border: 1px solid rgba(255,213,74,.4) !important; }
body.cdBody .topbar .menuBtn span{ background: #FFE27A !important; }

/* ===== MENÚ INFERIOR (jisooRail) dorado-arcoíris ===== */
body.cdBody .jisooRail{
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    conic-gradient(from var(--ang), #FFD54A, #FF7AA8, #A98BFF, #7CC8FF, #7FE6B5, #FFE27A, #FFD54A) border-box !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 30px rgba(255,213,74,.14) !important;
  animation: angSpin 12s linear infinite, railIn .45s cubic-bezier(.22,1,.36,1);
}
body.cdBody .jisooRail .railItem{ color: #FFE9A3 !important; background: transparent !important; }
body.cdBody .jisooRail .railItem:hover{ background: rgba(255,213,74,.14) !important; }
body.cdBody .jisooRail .railItem.isActive,
body.cdBody .jisooRail .railItem[aria-current="page"],
body.cdBody .jisooRail .railItem.railCenter{
  color: #2B1263 !important; background: linear-gradient(180deg, #FFF0B0, #FFD54A 55%, #E0A400) !important;
  box-shadow: 0 3px 0 #9A6600, 0 0 20px rgba(255,213,74,.4) !important;
}

@media (prefers-reduced-motion: reduce){
  .cdUnit, .cdNum, .cdBtn::after, body.cdBody .topbarInner, body.cdBody .jisooRail, .cdHero::after{ animation: none !important; }
}
