/*
  secret-games.css
  Modulo visual exclusivo del modal secreto de juegos.
*/

.secret-games-modal {
  background: radial-gradient(circle at 50% 38%, rgba(0, 40, 66, 0.34), rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.secret-games-content {
  position: relative;
  width: 95vw;
  max-width: 95vw;
  height: 95vh;
  max-height: 95vh;
  margin: 2.5vh auto;
  border-radius: 18px;
  overflow: hidden;
  padding: 72px 28px 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(30, 120, 255, 0.24), transparent 40%),
    radial-gradient(circle at 84% 84%, rgba(0, 255, 180, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(5, 16, 28, 0.98), rgba(2, 7, 16, 0.99));
  border: none;
  box-shadow: inset 0 0 120px rgba(0, 110, 255, 0.12), inset 0 0 1px rgba(180, 255, 235, 0.4);
}

.secret-games-content .close {
  top: 18px;
  right: 20px;
  font-size: 36px;
  color: #89ffde;
  z-index: 5;
}

.secret-console-fx,
.secret-console-grid,
.secret-console-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.secret-console-fx {
  opacity: 0.42;
  background: repeating-linear-gradient(
    0deg,
    rgba(110, 255, 214, 0.05) 0px,
    rgba(110, 255, 214, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
}

.secret-console-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(120, 255, 225, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 225, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
}

.secret-console-vignette {
  box-shadow: inset 0 0 170px rgba(0, 0, 0, 0.76);
}

.secret-console-header {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.secret-bootline {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(130, 255, 220, 0.5);
  background: rgba(5, 45, 37, 0.5);
  color: #85ffd4;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.secret-games-content h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.8rem);
  color: #e7fff6;
  text-shadow: 0 0 18px rgba(120, 255, 220, 0.28);
}

.secret-subtitle {
  margin: 12px 0 0;
  max-width: 780px;
  color: #b3f2df;
  letter-spacing: 0.02em;
}

.secret-launcher {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.secret-thumb {
  position: relative;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(120, 225, 255, 0.32);
  padding: 12px;
  min-height: 104px;
  background: linear-gradient(180deg, rgba(10, 34, 58, 0.82), rgba(4, 16, 30, 0.9));
  color: #d9f3ff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.secret-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 220, 255, 0.08), rgba(0, 255, 170, 0));
  pointer-events: none;
}

.secret-thumb[data-game="mario"] {
  background-image: linear-gradient(180deg, rgba(10, 34, 58, 0.68), rgba(4, 16, 30, 0.86)), url("../../games/fullscreenmario/Source/Theme/Mario.gif");
  background-size: cover;
  background-position: center;
}

.secret-thumb:hover,
.secret-thumb:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(150, 255, 232, 0.9);
  box-shadow: 0 0 16px rgba(60, 220, 255, 0.3);
  outline: none;
}

.secret-thumb.is-active {
  border-color: rgba(144, 255, 218, 0.95);
  box-shadow: 0 0 0 1px rgba(144, 255, 218, 0.4), 0 0 16px rgba(60, 220, 255, 0.34);
}

.secret-thumb-tag,
.secret-thumb-title,
.secret-thumb-desc {
  position: relative;
  z-index: 1;
  display: block;
}

.secret-thumb-tag {
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(150, 245, 255, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.secret-thumb-title {
  font-weight: 700;
  font-size: 1rem;
}

.secret-thumb-desc {
  margin-top: 4px;
  font-size: 0.84rem;
  color: #b8d8e6;
}

.secret-launcher-hint {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(120, 255, 220, 0.25);
  border-radius: 10px;
  background: rgba(6, 22, 38, 0.52);
}

.secret-launcher-hint p {
  margin: 0;
  color: #b9e1ef;
}

.secret-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 241, 255, 0.38);
  background: rgba(12, 52, 71, 0.72);
  color: #9eeeff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.secret-player-stage {
  position: relative;
  border: 1px solid rgba(118, 245, 220, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #02060f;
}

.secret-player-frame {
  display: block;
  width: 100%;
  height: calc(95vh - 120px);
  min-height: 420px;
  border: 0;
  background: #000;
}

.secret-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(6, 20, 38, 0.2), rgba(5, 16, 30, 0.88));
  color: #9df0d6;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  text-transform: uppercase;
  transition: opacity 0.26s ease;
}

.secret-player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.secret-player-modal {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.secret-player-content {
  width: 95vw;
  max-width: 95vw;
  height: 95vh;
  max-height: 95vh;
  margin: 2.5vh auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(95, 220, 255, 0.24);
  background: #020814;
  box-shadow: 0 0 0 1px rgba(122, 245, 255, 0.2), 0 0 40px rgba(0, 145, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secret-player-content .close {
  top: 10px;
  right: 14px;
}

.secret-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 36px 0 2px;
}

.secret-player-top h3 {
  margin: 0;
  color: #d8f6ff;
}

.secret-footnote {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(130, 255, 225, 0.28);
  color: #95d6c2;
  letter-spacing: 0.05em;
}

.secret-footnote span {
  color: #9cffd9;
}

@media (max-width: 780px) {
  .secret-games-content {
    padding: 66px 14px 16px;
  }

  .secret-launcher {
    grid-template-columns: 1fr;
  }

  .secret-player-frame {
    height: calc(95vh - 130px);
    min-height: 300px;
  }
}
