/* =============================================
   Naru2day — Home Page Styles
   ============================================= */

body {
  background-image: url('../img/Fondo_vertical.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

/* ── Page subtitle ── */
.wn-subtitle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 20px 28px;
  text-align: center;
}

.wn-page-subtitle {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 2.2rem;
  color: #FF6B00;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.55),
    0 0 20px rgba(255, 107, 0, 0.3);
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .wn-page-subtitle {
    font-size: 1.45rem;
  }
  .wn-subtitle-container {
    padding: 16px 16px 6px;
  }
}

/* Animation delays for index page sections */
#rescue-cta {
  animation-delay: .03s;
  text-align: center;
}

.game-cards-grid {
  animation-delay: .05s;
}

/* Grid for the game cards */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Coming-soon / disabled card variant */
.wn-main-card--disabled {
  filter: grayscale(0.8) opacity(0.85);
  cursor: default;
}

.wn-main-card--disabled .wn-main-card-title {
  font-size: 1.5rem;
}

.wn-main-card--disabled .wn-main-card-label {
  color: #ccc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}

/* ── Main game card — the scroll IS the card ── */
.wn-main-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: block;
  width: 440px;
  /* Made it slightly larger to match request */
  max-width: 100%;
  margin: 0 auto;
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.wn-main-card::before,
.wn-main-card::after {
  display: none;
}

.wn-main-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  filter: drop-shadow(0 15px 35px rgba(255, 107, 0, 0.45));
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.wn-main-card:active {
  transform: translateY(-2px) scale(0.99);
  filter: drop-shadow(0 5px 15px rgba(255, 107, 0, 0.3));
}

/* Scroll image — fills the card */
.wn-main-card-scroll {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Content layer — spans from top roller to just above Fight */
.wn-main-card-content {
  position: absolute;
  top: 16%;
  bottom: 28%;
  /* bottom edge sits at 72% from top, just above Fight at 73% */
  left: 13%;
  right: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
}

.wn-main-card-title {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a0c00;
  line-height: 1.1;
  letter-spacing: 0px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.wn-main-card-title span {
  text-align: center;
  width: max-content;
  max-width: 215px;
  line-height: 1.25;
}

.wn-main-card-game-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.wn-main-card-sub {
  font-family: 'Klee One', cursive;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d2210;
  line-height: 1.35;
  text-align: center;
  padding: 0 1rem;
}

/* "Fight" — positioned just above the ink stripe (~70% from top) */
.wn-main-card-label {
  position: absolute;
  top: 73%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #fff;
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 210, 140, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wn-main-card:hover .wn-main-card-label {
  color: #FFB347;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 107, 0, 0.8);
  transform: translateX(-50%) scale(1.1);
}


/* ── Difficulty modal options ── */
.wn-diff-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--wn-border);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--wn-text);
  transition: all .18s;
  background: var(--wn-bg);
}

.wn-diff-option:last-child {
  margin-bottom: 0;
}

.wn-diff-option:hover {
  border-color: var(--wn-orange-dark);
  background: var(--wn-bg-card);
  color: var(--wn-text);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(255, 107, 0, .1);
  text-decoration: none;
}

.wn-diff-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.wn-diff-info {
  flex: 1;
  min-width: 0;
}

.wn-diff-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.wn-diff-chevron {
  color: var(--wn-text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: .5;
}

@media (max-width: 576px) {
  .wn-main-card-title {
    font-size: 1.25rem;
    gap: 10px;
  }
  .wn-main-card-game-icon {
    width: 60px;
    height: 60px;
  }
  .wn-main-card-title span {
    max-width: 160px;
  }
}