/* ENJU_GAMES_HUB_V1 */

.games-shell{
  width:min(1180px,calc(100% - 28px));
  margin:28px auto 60px;
}

.games-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:center;

  padding:28px;

  border:1px solid rgba(255,153,64,.45);
  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      rgba(5,25,63,.94),
      rgba(7,43,92,.88)
    );

  box-shadow:
    0 18px 50px rgba(0,0,0,.24);
}

.games-kicker,
.game-eyebrow{
  margin:0 0 7px;

  color:#ffad55;

  font-size:.73rem;
  font-weight:900;

  letter-spacing:.16em;
}

.games-heading h1{
  margin:0 0 10px;

  color:#fff;

  font-size:clamp(2rem,4vw,3.5rem);

  line-height:1;
}

.games-heading p{
  max-width:680px;

  margin:0;

  color:#c8d9ef;

  line-height:1.65;
}

.games-auth{
  padding:16px;

  border:
    1px solid
    rgba(115,164,226,.34);

  border-radius:14px;

  background:
    rgba(2,14,35,.72);
}

#gamesLoggedOut{
  display:grid;
  gap:7px;
}

#gamesLoggedOut span{
  color:#9fb4cf;
  font-size:.83rem;
}

.games-discord-button{
  display:inline-flex;

  justify-content:center;
  align-items:center;

  margin-top:6px;
  padding:10px 14px;

  border-radius:10px;

  color:#fff;
  background:#5865f2;

  font-weight:900;
}

.games-user{
  display:flex;
  align-items:center;

  gap:12px;
}

.games-user img{
  width:50px;
  height:50px;

  flex:none;

  border-radius:50%;

  object-fit:cover;

  border:
    2px solid
    rgba(255,173,85,.75);
}

.games-user small,
.games-user strong,
.games-user a{
  display:block;
}

.games-user small{
  color:#8da8ca;

  font-size:.66rem;
  font-weight:900;

  letter-spacing:.12em;
}

.games-user strong{
  margin:1px 0;

  color:#fff;
}

.games-user a{
  color:#ffb66c;

  font-size:.78rem;
}

.games-grid{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:20px;

  margin-top:22px;
}

.game-card{
  overflow:hidden;

  border:
    1px solid
    rgba(71,123,187,.42);

  border-radius:18px;

  background:
    rgba(4,20,47,.90);
}

.game-art{
  position:relative;

  min-height:170px;

  display:grid;

  place-items:center;

  overflow:hidden;

  border-bottom:
    1px solid
    rgba(71,123,187,.34);

  background:
    radial-gradient(
      circle at center,
      rgba(31,90,155,.88),
      rgba(4,19,45,.96)
    );
}

.game-card-clash .game-art{
  background:
    linear-gradient(
      rgba(7,18,42,.36),
      rgba(7,18,42,.78)
    ),
    url('/images/uno/table.png')
      center/cover no-repeat;
}

.game-card-blackjack .game-art{
  background:linear-gradient(rgba(10,5,29,.12),rgba(10,5,29,.3)),url('/images/blackjack/table.png') center/cover no-repeat;
}

.game-icon{
  font-size:4.8rem;

  filter:
    drop-shadow(
      0 8px 14px rgba(0,0,0,.55)
    );
}

.game-status{
  position:absolute;

  top:12px;
  right:12px;

  padding:5px 8px;

  border:
    1px solid
    rgba(255,178,93,.55);

  border-radius:999px;

  color:#ffc17e;

  background:
    rgba(13,28,54,.88);

  font-size:.65rem;
  font-weight:900;

  letter-spacing:.11em;
}

.game-copy{
  padding:22px;
}

.game-copy h2{
  margin:0 0 8px;

  color:#fff;

  font-size:1.65rem;
}

.game-copy > p:not(.game-eyebrow){
  min-height:52px;

  margin:0;

  color:#b7c9df;

  line-height:1.55;
}

.game-tags{
  display:flex;

  flex-wrap:wrap;

  gap:6px;

  margin:17px 0;
}

.game-tags span{
  padding:5px 8px;

  border:
    1px solid
    rgba(93,143,205,.36);

  border-radius:999px;

  color:#bdd1eb;

  background:
    rgba(9,35,72,.75);

  font-size:.69rem;
}

.game-play-button{
  display:flex;

  justify-content:space-between;
  align-items:center;

  gap:12px;

  width:100%;

  padding:12px 14px;

  border:
    1px solid
    #ff9d43;

  border-radius:11px;

  color:#07182e;

  background:
    linear-gradient(
      180deg,
      #ffc06f,
      #ff993c
    );

  font-weight:900;
}

.game-play-button:hover{
  filter:brightness(1.08);
}

.games-coming{
  display:flex;

  align-items:center;

  gap:13px;

  margin-top:20px;
  padding:17px 20px;

  border:
    1px dashed
    rgba(104,150,205,.40);

  border-radius:14px;

  background:
    rgba(4,18,42,.70);
}

.games-coming > span{
  font-size:1.8rem;
}

.games-coming strong{
  color:#fff;
}

.games-coming p{
  margin:2px 0 0;

  color:#97aec9;

  font-size:.82rem;
}


@media(max-width:850px){

  .games-heading{
    grid-template-columns:1fr;
  }

  .games-grid{
    grid-template-columns:1fr;
  }

  .game-copy > p:not(.game-eyebrow){
    min-height:0;
  }

}


@media(max-width:540px){

  .games-shell{
    width:calc(100% - 14px);

    margin-top:12px;
  }

  .games-heading{
    padding:18px 15px;
  }

  .game-art{
    min-height:135px;
  }

  .game-icon{
    font-size:3.7rem;
  }

  .game-copy{
    padding:17px 15px;
  }

}

/* END_ENJU_GAMES_HUB_V1 */


/* ==========================================================
   ENJU_GAMES_AUTH_POSITION_V1A
   ========================================================== */

.games-heading{
    align-items:start;
}


/*
 * Push the Discord profile area down slightly so it sits
 * naturally beside the Games intro instead of hugging the top.
 */
.games-auth{
    align-self:start;

    margin-top:32px;

    position:relative;

    z-index:2;
}


/*
 * Keep avatar + account information on one clean row.
 */
.games-user{
    display:grid;

    grid-template-columns:56px minmax(0,1fr);

    align-items:center;

    gap:13px;

    min-height:64px;
}


/*
 * Make sure the Discord avatar never falls underneath
 * another button or content layer.
 */
.games-user img{
    position:relative !important;

    display:block;

    width:56px;
    height:56px;

    margin:0;

    border-radius:50%;

    object-fit:cover;

    z-index:3;
}


.games-user > div{
    min-width:0;

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    justify-content:center;
}


.games-user small{
    margin:0 0 2px;

    line-height:1.15;
}


.games-user strong{
    display:block;

    max-width:100%;

    margin:0 0 3px;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:1rem;
}


.games-user a{
    display:inline-block;

    margin-top:1px;

    line-height:1.2;
}


/* Remove leftover spacing from deleted future-games block. */

.games-grid{
    margin-bottom:0;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:850px){

    .games-auth{
        width:100%;

        margin-top:8px;
    }


    .games-user{
        grid-template-columns:50px minmax(0,1fr);
    }


    .games-user img{
        width:50px;
        height:50px;
    }

}

/* ==========================================================
   END_ENJU_GAMES_AUTH_POSITION_V1A
   ========================================================== */



/* ENJU_GAMES_AUTH_NUDGE_V1B */

/*
 * Move Discord account box down slightly.
 * Do not change its original flex/grid layout.
 */
.games-auth{
    margin-top:34px !important;

    position:relative !important;

    z-index:10 !important;

    overflow:visible !important;
}


/*
 * Keep the signed-in user row and avatar above nearby
 * buttons/cards instead of allowing the image underneath.
 */
.games-user{
    position:relative !important;

    z-index:11 !important;

    overflow:visible !important;
}


.games-user img{
    position:relative !important;

    display:block !important;

    z-index:12 !important;

    flex-shrink:0 !important;
}


/*
 * Phone/tablet: don't push it down quite as far.
 */
@media(max-width:850px){

    .games-auth{
        margin-top:14px !important;
    }

}

/* END_ENJU_GAMES_AUTH_NUDGE_V1B */


/* ENJU_GAMES_COMING_SOON_V1 */
.game-card-vault .game-art{
  background:
    radial-gradient(circle at 50% 45%,rgba(255,181,74,.23),transparent 30%),
    linear-gradient(135deg,rgba(8,28,55,.98),rgba(21,52,79,.94));
}

.game-card-candyrush .game-art{
  background:
    radial-gradient(circle at 35% 35%,rgba(255,196,224,.24),transparent 28%),
    radial-gradient(circle at 70% 62%,rgba(255,190,76,.22),transparent 30%),
    linear-gradient(135deg,rgba(44,16,62,.98),rgba(20,48,87,.95));
}

.game-status-coming{
  border-color:rgba(255,184,92,.72);
  color:#ffd39b;
}

.game-play-button-disabled{
  cursor:not-allowed;
  user-select:none;
  color:#9fb0c5;
  border-color:rgba(118,145,178,.34);
  background:linear-gradient(180deg,rgba(36,56,82,.82),rgba(22,39,64,.9));
  box-shadow:none;
}

.game-play-button-disabled:hover{
  filter:none;
}
/* END_ENJU_GAMES_COMING_SOON_V1 */


/* Candy Hex game card */
.game-card-candy-hex .game-art{
  background:
    radial-gradient(circle at 24% 24%, rgba(255,181,92,.38), transparent 34%),
    radial-gradient(circle at 76% 68%, rgba(194,112,255,.34), transparent 38%),
    linear-gradient(135deg, #32133e 0%, #5c1c68 46%, #251034 100%);
}
.game-card-candy-hex .game-icon{
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.32));
}
