/* ===================================================
   Release Lock Modal — shared-release-lock.css
   Overrides / extends the base .weekly-lock styles
   that are inlined in each game file.
   =================================================== */

/* ---------- Card shell ---------- */
#releaseLock .weekly-lock-card {
  width: min(460px, 92vw);
  padding: 36px 32px 32px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(80, 120, 200, 0.13) 0%, transparent 60%),
    rgba(10, 13, 20, 0.97);
  border: 1px solid rgba(120, 160, 220, 0.22);
  border-radius: 20px;
  box-shadow:
    0 0 90px rgba(70, 110, 180, 0.22),
    0 0 220px rgba(50, 80, 140, 0.10),
    inset 0 1px 0 rgba(160, 200, 255, 0.055);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Thin top-edge accent line */
#releaseLock .weekly-lock-card::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 180, 255, 0.45),
    transparent
  );
}

/* ---------- Entrance animation ---------- */
@keyframes rl-card-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

#releaseLock .weekly-lock-card {
  animation: rl-card-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- Lock icon ---------- */
.release-lock-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(100, 145, 230, 0.16) 0%, transparent 70%),
    rgba(18, 26, 44, 0.85);
  border: 1px solid rgba(120, 165, 230, 0.28);
  border-radius: 16px;
  box-shadow:
    0 0 28px rgba(80, 120, 210, 0.18),
    inset 0 1px 0 rgba(160, 205, 255, 0.07);
}

@keyframes rl-icon-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(130, 175, 255, 0.45)); }
  50%       { filter: drop-shadow(0 0 11px rgba(140, 185, 255, 0.70)); }
}

.release-lock-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(160, 205, 255, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: rl-icon-pulse 3s ease-in-out infinite;
}

/* ---------- Title ---------- */
#releaseLock .weekly-lock-title {
  font-size: 12px;
  letter-spacing: 0.30em;
  color: rgba(200, 218, 248, 0.92);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ---------- Body text ---------- */
#releaseLock .weekly-lock-text {
  font-size: 13px;
  letter-spacing: 0.07em;
  color: rgba(135, 162, 205, 0.78);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Actions ---------- */
.release-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ---------- Primary CTA ---------- */
.release-lock-primary {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 15px 28px !important;
  font-size: 11px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(220, 232, 255, 0.98) !important;
  background: linear-gradient(
    135deg,
    rgba(72, 118, 228, 0.38) 0%,
    rgba(100, 78, 210, 0.30) 100%
  );
  border: 1px solid rgba(140, 180, 255, 0.42) !important;
  border-radius: 12px;
  box-shadow:
    0 0 32px rgba(88, 130, 230, 0.18),
    inset 0 1px 0 rgba(180, 215, 255, 0.07);
  transition: color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

/* Hover shimmer layer */
.release-lock-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(140, 185, 255, 0.10) 0%,
    rgba(160, 120, 255, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.18s;
  border-radius: inherit;
}

.release-lock-primary:hover,
.release-lock-primary:active {
  color: rgba(232, 240, 255, 1) !important;
  border-color: rgba(165, 205, 255, 0.62) !important;
  box-shadow:
    0 0 52px rgba(100, 150, 255, 0.32),
    inset 0 1px 0 rgba(200, 225, 255, 0.10);
  transform: translateY(-1px);
}

.release-lock-primary:hover::after,
.release-lock-primary:active::after {
  opacity: 1;
}

/* ---------- Secondary / ghost ---------- */
.release-lock-secondary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px !important;
  font-size: 10px !important;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(148, 172, 212, 0.78) !important;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(110, 145, 200, 0.18) !important;
  border-radius: 12px;
  transition: color 0.18s, border-color 0.18s;
}

.release-lock-secondary:hover,
.release-lock-secondary:active {
  color: rgba(175, 198, 235, 0.95) !important;
  border-color: rgba(130, 165, 220, 0.34) !important;
  box-shadow: none;
  transform: none;
}

/* ===================================================
   Mobile / small-screen
   =================================================== */
@media (max-width: 440px), (max-height: 560px) {
  #releaseLock .weekly-lock-card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .release-lock-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
  }

  .release-lock-icon svg {
    width: 19px;
    height: 19px;
  }

  #releaseLock .weekly-lock-title {
    font-size: 11px;
    letter-spacing: 0.26em;
    margin-bottom: 10px;
  }

  #releaseLock .weekly-lock-text {
    font-size: 12px;
    margin-bottom: 22px;
    letter-spacing: 0.055em;
  }

  .release-lock-primary {
    padding: 14px 20px !important;
    font-size: 10px !important;
    letter-spacing: 0.19em;
  }

  .release-lock-secondary {
    padding: 11px 18px !important;
    font-size: 9px !important;
  }
}
