/*=============== VARIABLES TEEN ===============*/
:root{
  --teen-accent: hsl(266, 85%, 65%);
  --teen-accent-2: hsl(45, 95%, 60%);
  --teen-radius: 1.25rem;
}

/*=============== EYEBROW (compartido con el sitio principal) ===============*/
.section__eyebrow{
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teen-accent-2);
  margin-bottom: var(--mb-0-75);
}

.section__eyebrow-center{
  text-align: center;
}

.text-gradient{
  background: linear-gradient(90deg, var(--teen-accent), var(--teen-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*=============== HERO ===============*/
.teen-hero{
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.teen-hero::before,
.teen-hero::after{
  content: '';
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  z-index: 0;
}

.teen-hero::before{
  background: var(--teen-accent);
  top: -6rem;
  left: -6rem;
}

.teen-hero::after{
  background: var(--teen-accent-2);
  bottom: -8rem;
  right: -6rem;
}

.teen-hero__container{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.teen-hero__title{
  font-size: var(--big-font-size);
  line-height: 1.2;
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.teen-hero__description{
  color: var(--text-color);
  margin-bottom: var(--mb-1-5);
}

.teen-hero__verse{
  margin: 0 auto var(--mb-2);
  max-width: 480px;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--teen-accent);
  background: hsla(266, 85%, 65%, .1);
  border-radius: 0 .75rem .75rem 0;
  font-style: italic;
  font-size: var(--small-font-size);
  line-height: 160%;
  color: var(--text-color);
  text-align: left;
}

.teen-hero__verse cite{
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-weight: var(--font-semi-bold);
  color: var(--teen-accent-2);
}

.teen-hero__buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.teen-hero .button{
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  box-shadow: 0 8px 24px hsla(266, 85%, 65%, .35);
  border: 2px solid transparent;
}

.teen-hero .button:hover{
  filter: brightness(1.1);
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
}

.teen-hero .button--ghost{
  background: transparent;
  border: 2px solid var(--teen-accent);
  color: var(--teen-accent-2);
  box-shadow: none;
}

.teen-hero .button--ghost:hover{
  background: hsla(266, 85%, 65%, .15);
  filter: none;
}

/*=============== REUNIONES ===============*/
.teen-meetings__container{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
}

.teen-meetings__card{
  background: var(--container-color);
  border: 1px solid hsla(266, 85%, 65%, .25);
  border-radius: var(--teen-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.teen-meetings__card:hover{
  transform: translateY(-.35rem);
  border-color: var(--teen-accent);
  box-shadow: 0 10px 30px hsla(266, 85%, 65%, .18);
}

.teen-meetings__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--mb-1);
}

.teen-meetings__title{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: .35rem;
}

.teen-meetings__time{
  font-weight: var(--font-semi-bold);
  color: var(--teen-accent-2);
  margin-bottom: .5rem;
  font-size: var(--small-font-size);
}

.teen-meetings__description{
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.teen-meetings__link{
  display: inline-flex;
  align-items: center;
  column-gap: .3rem;
  margin-top: .75rem;
  color: var(--teen-accent-2);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
}

.teen-meetings__link:hover{
  color: var(--teen-accent);
}

/*=============== JUEGOS ===============*/
.games__intro{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
}

/* La sala de juegos se presenta como una "ventana" de aplicación */
.games__window{
  max-width: 100%;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsla(266, 85%, 65%, .25);
  box-shadow: 0 25px 60px hsla(0, 0%, 0%, .3);
  background: var(--container-color);
}

/* Barra de título estilo ventana de escritorio */
.games__titlebar{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: hsla(266, 85%, 65%, .12);
  border-bottom: 1px solid hsla(266, 85%, 65%, .2);
}

.games__dots{
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.games__dot{
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  display: inline-block;
}

.games__dot--red{ background: #ff5f57; }
.games__dot--yellow{ background: #febc2e; }
.games__dot--green{ background: #28c840; }

.games__titlebar-label{
  flex: 1;
  text-align: center;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games__expand{
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  column-gap: .35rem;
  background: var(--container-color);
  border: 2px solid hsla(266, 85%, 65%, .3);
  color: var(--teen-accent-2);
  padding: .4rem .8rem;
  border-radius: .6rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: .3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.games__expand:hover{
  border-color: var(--teen-accent);
  background: hsla(266, 85%, 65%, .1);
}

.games__random{
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  column-gap: .35rem;
  background: transparent;
  border: 2px solid transparent;
  color: var(--teen-accent-2);
  padding: .4rem .8rem;
  border-radius: .6rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: .3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.games__random:hover{
  border-color: hsla(266, 85%, 65%, .3);
  background: hsla(266, 85%, 65%, .1);
}

.games__body{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Selector de juegos: en móvil es una tira horizontal deslizable (no le roba
   altura al área de juego); en escritorio se convierte en menú lateral fijo */
.games__tabs{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: .6rem;
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.games__tabs::-webkit-scrollbar{
  height: 6px;
}

.games__tabs::-webkit-scrollbar-thumb{
  background: hsla(266, 85%, 65%, .4);
  border-radius: 1rem;
}

.games__tab{
  font-family: inherit;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: .35rem;
  background: var(--container-color);
  border: 2px solid hsla(266, 85%, 65%, .2);
  color: var(--text-color);
  padding: .85rem .5rem;
  border-radius: 1rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: .3s;
}

.games__tab-icon{
  font-size: 1.5rem;
  line-height: 1;
}

.games__tab-label{
  font-size: var(--smaller-font-size);
  text-align: center;
  line-height: 1.2;
}

.games__tab:hover{
  border-color: var(--teen-accent);
  transform: translateY(-.15rem);
}

.games__tab.is-active{
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px hsla(266, 85%, 65%, .3);
}

.games__panels{
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

/* En pantallas grandes el selector pasa a ser un menú lateral fijo a la izquierda,
   como el panel de navegación de una app, y el juego ocupa el resto de la ventana */
@media screen and (min-width: 768px){
  .games__body{
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 520px;
  }

  .games__tabs{
    flex-direction: column;
    flex: 0 0 180px;
    overflow-x: visible;
    overflow-y: auto;
    scroll-snap-type: none;
    margin: 0;
    padding: 0 .75rem 0 0;
    border-right: 1px solid hsla(266, 85%, 65%, .18);
  }

  .games__tab{
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    column-gap: .65rem;
    padding: .65rem .85rem;
  }

  .games__tab:hover{
    transform: translateX(.15rem);
  }

  .games__tab-label{
    text-align: left;
  }

  .games__tabs::-webkit-scrollbar{
    width: 6px;
  }

  .games__panels{
    min-width: 0;
  }
}

/* Modo ampliado: la ventana cubre toda la pantalla para dar mas espacio */
.games__window.is-expanded{
  position: fixed;
  inset: 0;
  z-index: 2000;
  max-width: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.games__window.is-expanded .games__body{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.games__window.is-expanded #bubbleGame{
  max-width: 520px;
}

.games__window.is-expanded .memory__grid,
.games__window.is-expanded .simon__grid{
  max-width: 520px;
}

.games__window.is-expanded .hangman__keyboard{
  max-width: 560px;
}

body.games-lock-scroll{
  overflow: hidden;
}

.games__panel{
  text-align: center;
}

.games__instructions{
  color: var(--text-color);
  font-size: var(--small-font-size);
  margin-bottom: 1.25rem;
}

.games__stats{
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 1rem 0;
}

.games__message{
  margin: 1rem auto;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background: hsla(45, 95%, 60%, .12);
  border: 1px solid hsla(45, 95%, 60%, .4);
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.games__message.is-win{
  background: hsla(140, 60%, 50%, .12);
  border-color: hsla(140, 60%, 50%, .4);
}

.games__button{
  font-family: inherit;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: .3s;
}

.games__button:hover{
  filter: brightness(1.1);
}

.games__button--ghost{
  background: transparent;
  border: 2px solid var(--teen-accent);
  color: var(--teen-accent-2);
}

.games__button--ghost:hover{
  filter: none;
  background: hsla(266, 85%, 65%, .12);
}

/* Atrapa la luz */
#bubbleGame{
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: hsla(266, 85%, 65%, .06);
  border: 2px solid hsla(266, 85%, 65%, .3);
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  touch-action: none;
}

/* Trivia */
.quiz__progress{
  font-size: var(--smaller-font-size);
  color: var(--teen-accent-2);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}

.quiz__question{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin: 0 auto 1.25rem;
  max-width: 520px;
}

.quiz__options{
  display: grid;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}

.quiz__option{
  font-family: inherit;
  background: var(--body-color);
  border: 2px solid hsla(266, 85%, 65%, .25);
  color: var(--text-color);
  padding: .85rem 1.25rem;
  border-radius: .75rem;
  cursor: pointer;
  text-align: left;
  font-size: var(--small-font-size);
  transition: .2s;
}

.quiz__option:hover:not(:disabled){
  border-color: var(--teen-accent);
}

.quiz__option.is-correct{
  background: hsla(140, 60%, 50%, .18);
  border-color: hsl(140, 60%, 50%);
  color: var(--title-color);
}

.quiz__option.is-wrong{
  background: hsla(0, 70%, 60%, .18);
  border-color: hsl(0, 70%, 60%);
  color: var(--title-color);
}

.quiz__option:disabled{
  cursor: default;
}

/* Memorama */
.memory__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  max-width: 420px;
  margin: 1rem auto 0;
  perspective: 1000px;
}

.memory__card{
  position: relative;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .4s;
  border-radius: .75rem;
}

.memory__card.is-flipped,
.memory__card.is-matched{
  transform: rotateY(180deg);
}

.memory__card-face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  backface-visibility: hidden;
  font-size: 1.5rem;
}

.memory__card-face--back{
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
}

.memory__card-face--front{
  background: var(--body-color);
  border: 2px solid hsla(266, 85%, 65%, .3);
  transform: rotateY(180deg);
  font-size: 1.85rem;
}

.memory__card.is-matched{
  opacity: .55;
  cursor: default;
}

/* Ahorcado bíblico */
.hangman__meta{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}

.hangman__category{
  display: inline-block;
  background: hsla(266, 85%, 65%, .15);
  color: var(--teen-accent-2);
  border: 1px solid hsla(266, 85%, 65%, .35);
  padding: .25rem .75rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hangman__streak{
  display: inline-block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.hangman__hint-button{
  font-family: inherit;
  display: block;
  margin: 0 auto 1.25rem;
  background: transparent;
  border: 2px dashed hsla(45, 95%, 60%, .5);
  color: var(--teen-accent-2);
  padding: .5rem 1rem;
  border-radius: .6rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: .3s;
}

.hangman__hint-button:hover:not(:disabled){
  background: hsla(45, 95%, 60%, .12);
  border-style: solid;
}

.hangman__hint-button:disabled{
  opacity: .4;
  cursor: default;
}

.hangman__hint{
  font-size: var(--small-font-size);
  color: var(--teen-accent-2);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.hangman__lives{
  font-size: 1.35rem;
  letter-spacing: .3rem;
  margin-bottom: 1rem;
}

.hangman__word{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.hangman__letter{
  width: 2.1rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--teen-accent);
  font-size: 1.25rem;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  text-transform: uppercase;
}

.hangman__keyboard{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
  max-width: 460px;
  margin: 0 auto;
}

.hangman__key{
  font-family: inherit;
  background: var(--body-color);
  border: 2px solid hsla(266, 85%, 65%, .25);
  color: var(--text-color);
  border-radius: .5rem;
  padding: .6rem 0;
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: .2s;
}

.hangman__key:hover:not(:disabled){
  border-color: var(--teen-accent);
}

.hangman__key.is-correct{
  background: hsla(140, 60%, 50%, .18);
  border-color: hsl(140, 60%, 50%);
}

.hangman__key.is-wrong{
  background: hsla(0, 70%, 60%, .18);
  border-color: hsl(0, 70%, 60%);
  opacity: .55;
}

.hangman__key:disabled{
  cursor: default;
}

/* Ordena el versículo */
.verse-order__reference{
  font-size: var(--smaller-font-size);
  color: var(--teen-accent-2);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.verse-order__answer{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem;
  margin-bottom: 1rem;
  border: 2px dashed hsla(266, 85%, 65%, .3);
  border-radius: .75rem;
}

.verse-order__bank{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.verse-order__word{
  font-family: inherit;
  background: var(--body-color);
  border: 2px solid hsla(266, 85%, 65%, .3);
  color: var(--title-color);
  padding: .5rem .9rem;
  border-radius: .6rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: .2s;
}

.verse-order__word:hover{
  border-color: var(--teen-accent);
}

.verse-order__answer .verse-order__word{
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
  border-color: transparent;
}

.verse-order__answer .verse-order__word.is-correct{
  background: hsla(140, 60%, 50%, .85);
}

.verse-order__answer .verse-order__word.is-wrong{
  background: hsla(0, 70%, 60%, .85);
}

.verse-order__actions{
  margin-bottom: .5rem;
}

/* Simon dice biblico */
.simon__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  max-width: 320px;
  margin: 0 auto 1.25rem;
}

.simon__pad{
  aspect-ratio: 1;
  border: none;
  border-radius: 1.25rem;
  background: hsla(var(--pad-hue), 70%, 55%, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.simon__pad:hover{
  transform: scale(1.03);
}

.simon__pad.is-lit{
  background: hsla(var(--pad-hue), 70%, 55%, .9);
  transform: scale(.96);
  box-shadow: 0 0 25px hsla(var(--pad-hue), 70%, 55%, .7);
}

.simon__pad:disabled{
  cursor: default;
}

.simon__status{
  color: var(--text-color);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

/* Verdadero o falso relampago */
.vof__timerbar{
  width: 100%;
  max-width: 480px;
  height: .5rem;
  margin: 0 auto 1.25rem;
  background: hsla(266, 85%, 65%, .15);
  border-radius: 1rem;
  overflow: hidden;
}

.vof__timerbar-fill{
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--teen-accent), var(--teen-accent-2));
  transition: width 1s linear;
}

.vof__statement{
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: var(--h3-font-size);
  color: var(--title-color);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vof__buttons{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.vof__button{
  font-family: inherit;
  border: none;
  padding: 1rem 1.75rem;
  border-radius: .75rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: #fff;
  cursor: pointer;
  transition: .2s;
}

.vof__button--true{
  background: hsl(140, 55%, 45%);
}

.vof__button--false{
  background: hsl(0, 65%, 55%);
}

.vof__button:hover{
  filter: brightness(1.1);
}

.vof__button:disabled{
  opacity: .5;
  cursor: default;
}

/* Cruz y corona (tres en raya) */
.ttt__status{
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.25rem;
}

.ttt__board{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  max-width: 300px;
  margin: 0 auto 1rem;
}

.ttt__cell{
  aspect-ratio: 1;
  border: 2px solid hsla(266, 85%, 65%, .3);
  border-radius: .75rem;
  background: var(--body-color);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
}

.ttt__cell:hover:not(:disabled){
  border-color: var(--teen-accent);
}

.ttt__cell:disabled{
  cursor: default;
}

/* Buscapalabras biblico */
.wordsearch__list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.wordsearch__word{
  background: hsla(266, 85%, 65%, .12);
  border: 1px solid hsla(266, 85%, 65%, .3);
  color: var(--title-color);
  padding: .3rem .75rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
}

.wordsearch__word.is-found{
  background: hsla(140, 60%, 50%, .18);
  border-color: hsl(140, 60%, 50%);
  color: var(--text-color);
  text-decoration: line-through;
  opacity: .7;
}

.wordsearch__grid{
  display: grid;
  gap: 2px;
  max-width: 420px;
  margin: 0 auto;
  user-select: none;
}

.wordsearch__cell{
  font-family: inherit;
  aspect-ratio: 1;
  border: 1px solid hsla(266, 85%, 65%, .15);
  background: var(--body-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
}

.wordsearch__cell.is-anchor{
  background: hsla(45, 95%, 60%, .35);
  border-color: hsl(45, 95%, 60%);
}

.wordsearch__cell.is-found{
  background: hsla(140, 60%, 50%, .3);
  border-color: hsl(140, 60%, 50%);
  color: var(--title-color);
}

/* Rompecabezas deslizante */
.sliding__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  max-width: 300px;
  margin: 0 auto;
}

.sliding__tile{
  font-family: inherit;
  aspect-ratio: 1;
  border: none;
  border-radius: .6rem;
  background: linear-gradient(135deg, var(--teen-accent), var(--teen-accent-2));
  color: #fff;
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: transform .15s;
}

.sliding__tile:hover{
  filter: brightness(1.1);
}

.sliding__tile.is-blank{
  background: transparent;
  cursor: default;
  visibility: hidden;
}

/* Golpea y escapa */
.whack__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  max-width: 320px;
  margin: 0 auto;
}

.whack__hole{
  font-family: inherit;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: hsla(266, 85%, 65%, .12);
  border: 2px solid hsla(266, 85%, 65%, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
}

.whack__hole.is-up{
  background: hsla(45, 95%, 60%, .2);
  border-color: var(--teen-accent-2);
  animation: whack-pop .2s ease-out;
}

.whack__hole.is-trap{
  background: hsla(0, 70%, 60%, .2);
  border-color: hsl(0, 70%, 60%);
}

@keyframes whack-pop{
  from{ transform: scale(.7); }
  to{ transform: scale(1); }
}

/*=============== GALERIA ===============*/
.teen-gallery__grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.teen-gallery__item{
  border: none;
  background: var(--container-color);
  padding: .5rem .5rem 1.25rem;
  border-radius: .5rem;
  box-shadow: 0 6px 16px hsla(0, 0%, 0%, .35);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.teen-gallery__item:nth-child(odd){
  transform: rotate(-2deg);
}

.teen-gallery__item:nth-child(even){
  transform: rotate(2deg);
}

.teen-gallery__item:hover{
  transform: scale(1.06) rotate(0deg);
  box-shadow: 0 14px 30px hsla(266, 85%, 65%, .35);
  z-index: 2;
}

.teen-gallery__item img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: .35rem;
  display: block;
}

/*=============== LIGHTBOX ===============*/
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: hsla(0, 0%, 0%, .9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden]{
  display: none;
}

.lightbox__img{
  max-width: 90vw;
  max-height: 80vh;
  border-radius: .75rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next{
  position: absolute;
  background: hsla(0, 0%, 100%, .1);
  border: none;
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s;
}

.lightbox__close{
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox__prev{
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next{
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover{
  background: hsla(0, 0%, 100%, .25);
}

/*=============== RESPONSIVE ===============*/

/* Tablets y móviles grandes */
@media screen and (max-width: 576px){
  .teen-hero{
    padding: 6.5rem 1rem 3rem;
  }

  .teen-hero__buttons{
    flex-direction: column;
    align-items: stretch;
  }

  .teen-hero__buttons .button{
    justify-content: center;
  }

  .games__tab{
    width: 78px;
  }

  .games__titlebar-label{
    max-width: 45vw;
  }

  .games__expand-text{
    display: none;
  }

  .games__body{
    padding: 1.5rem 1rem;
  }

  .games__stats{
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .vof__buttons{
    flex-direction: column;
    align-items: stretch;
  }

  .simon__grid{
    max-width: 260px;
  }

  .ttt__board{
    max-width: 260px;
  }

  .sliding__grid,
  .whack__grid{
    max-width: 260px;
  }

  .wordsearch__grid{
    max-width: 320px;
  }

  .teen-gallery__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .teen-gallery__item img{
    height: 110px;
  }
}

/* Móviles pequeños (320px - 400px) */
@media screen and (max-width: 400px){
  .teen-hero{
    padding: 6rem 1rem 3rem;
  }

  .teen-hero__verse{
    padding: .85rem 1rem;
    font-size: var(--smaller-font-size);
  }

  .games__body{
    padding: 1.25rem .75rem;
  }

  .memory__grid{
    gap: .5rem;
  }

  .hangman__keyboard{
    grid-template-columns: repeat(6, 1fr);
    gap: .4rem;
  }

  .hangman__letter{
    width: 1.75rem;
    height: 2.2rem;
    font-size: 1.1rem;
  }

  .hangman__lives{
    font-size: 1.1rem;
  }

  .quiz__option{
    padding: .7rem 1rem;
  }

  .games__intro{
    font-size: var(--smaller-font-size);
  }

  .games__titlebar-label{
    font-size: var(--smaller-font-size);
    max-width: 40vw;
  }

  .games__expand{
    padding: .45rem .6rem;
  }

  .games__tab{
    width: 70px;
    padding: .65rem .35rem;
  }

  .games__tab-icon{
    font-size: 1.25rem;
  }

  .simon__grid{
    max-width: 220px;
    gap: .6rem;
  }

  .simon__pad span{
    font-size: 1.6rem;
  }

  .ttt__board{
    max-width: 240px;
    gap: .4rem;
  }

  .ttt__cell{
    font-size: 1.4rem;
  }

  .vof__statement{
    font-size: var(--normal-font-size);
    min-height: 3rem;
  }

  .vof__button{
    padding: .85rem 1.25rem;
    font-size: var(--small-font-size);
  }

  .verse-order__word{
    padding: .4rem .7rem;
    font-size: var(--smaller-font-size);
  }

  .wordsearch__grid{
    gap: 1px;
  }

  .wordsearch__cell{
    font-size: .65rem;
  }

  .wordsearch__word{
    padding: .25rem .6rem;
    font-size: 11px;
  }

  .sliding__grid,
  .whack__grid{
    max-width: 250px;
  }

  .sliding__tile{
    font-size: 1.2rem;
  }

  .whack__hole{
    font-size: 1.4rem;
  }

  .lightbox__prev,
  .lightbox__next{
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .lightbox__close{
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media screen and (min-width: 767px){
  .teen-hero__title{
    font-size: 3rem;
  }
}
