:root {
  --card-width: 264px;
  --card-height: 352px;
  --tile-width: 304px;
}



/* Apply a black and white color scheme */
body {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

body.pyro::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 0, 149, 0.4), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(0, 153, 255, 0.35), transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(255, 170, 0, 0.35), transparent 50%),
    linear-gradient(135deg, rgba(5, 0, 40, 0.95), rgba(5, 0, 15, 0.85));
  z-index: -2;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.05) translateY(-1%);
    filter: hue-rotate(40deg);
  }
  100% {
    transform: scale(1.02) translateY(1%);
    filter: hue-rotate(-20deg);
  }
}

/* Add modern styles */
h1 {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
}
h2 {
    font-size: 2rem;
    font-weight: bold;
    font-family: Roboto;
}

p {
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #333;
}
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}
.titleImage{
    margin: 2px;
    max-width: 1280px;
}
.countdown{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}
#countdownText{
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    font-family: Roboto;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.countdownCard {
  border-radius: 999px;
  padding: 26px 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 8, 20, 0.7);
  box-shadow: 0 0 35px rgba(140, 86, 255, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.count-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.count-value {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.count-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
}
.descriptionDiv{
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
}
.description{
  font-family: Roboto;
  max-width: 960px;
  margin: 0 auto;
}
.hookText{
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    font-family: Roboto;
}
.playTiles{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.playTile{
  border-radius: 20px;
    width: 30%;
    margin: 2%;
    display: block;
    position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 3px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(255, 0, 149, 0.75));
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.playTile:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}
.playLink{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  border-radius: 17px;
  background: rgba(2, 2, 12, 0.96);
  overflow: hidden;
}
.tileMedia {
  position: relative;
  width: 100%;
  border-radius: 17px;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}
.tileImage{
    width: 100%;
    height: 100%;
  display: block;
}
.twitchLink{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.twitchImage{
    width: 160px;
}

.platformBox {
    position: absolute;
    bottom: 0;
  left: 0;
    width: 100%;
    min-height: 54px;
    background: rgba(5, 5, 18, 0.85);
    z-index: 2;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    backdrop-filter: blur(4px);
  }

.platformBox:hover {
  background: rgba(10, 10, 28, 0.92);
}

.platformIcon {
  width: 32px;
  height: 32px;
}

.gamesListPath{
  display: flex;
  justify-content: center;
  align-self: center;
}
.linkButton{
  width: 400px;
  height: 100px;
  background-color: slateblue;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border-radius: 15px;
}
.linkButton > a{
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-family: Roboto;
  font-size: 40px; 
}
.gamesLink{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}



/*games.html styling rules*/
#games-container{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.games-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: Roboto;
}
#won-games-container{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.game-tile{
  width: 100%;
  max-width: var(--tile-width);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgb(0, 28, 39);
  border-radius: 10px;
  border: solid 4px rgb(155, 155, 155);
  text-align: center;
  text-transform: capitalize;
  min-height: 500px;
  margin: 0 auto;
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.game-tile:hover {
  transform: translateY(-8px); 
  box-shadow: 0 15px 40px rgba(75, 75, 75, 0.5);
}

.game-tile.available {
  border-color: rgba(0, 255, 204, 0.6);
  box-shadow: 0 10px 20px rgba(0, 255, 204, 0.15);
}

.game-tile.claimed {
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 0.65;
}

.game-status {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-platform {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.game-platform img {
  width: 20px;
  height: 20px;
}

.game-tile.available .game-status {
  background: rgba(0, 255, 204, 0.15);
  border-color: rgba(0, 255, 204, 0.6);
}

.game-tile.claimed .game-status {
  background: rgba(255, 255, 255, 0.08);
}

#games {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.games-subhead {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  font-family: Roboto;
}

.games-toolbar {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(6, 6, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 96px;
  z-index: 15;
  backdrop-filter: blur(18px);
}

#gameSearch, #claimFilter {
  background: rgba(12, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-family: Roboto;
}

#gameSearch {
  flex: 1;
  min-width: 220px;
}

#claimFilter {
  min-width: 160px;
}

#refreshGames {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(255, 0, 149, 0.8));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#refreshGames:hover {
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.won-div{
  z-index: 10;
  position: absolute;
  width: inherit;
  height: inherit;
  background-color: rgba(49, 49, 49, 0.89);
  pointer-events: none;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.game-name{
  font-size: 24px;
  font-weight: bold;
  color: white;
  font-family: Roboto;
  text-transform: capitalize;
  text-wrap: wrap;
}
.id-div{
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.art-div{
  width: 100%;
  height: var(--card-height);
  display: flex;
  justify-content: center;
  align-items: center; 
  margin-top: 14px;
}
.game-art{
  width: 264px;
  height: 352px;
}
.name-div{
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 4px;
}
.game-name{
  margin: 0 10px;
  font-size: 20px;
}
.link-div{
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
.tile-link{
  width: 30%;
  
}
.nav{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 20, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav a{
  color: white;
}
.navLink{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navLink:hover{
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.navImg{
  width: 30px;
  height: 30px;
  margin-left: 10px;
  margin-right: 10px;
}
.homeImg{
  width: 50px;
  height: 50px;
  margin-left: 10px;
  margin-right: 10px;
}

@media (max-width: 640px) {
  #countdownText {
    flex-direction: column;
    gap: 18px;
  }

  .countdownCard {
    border-radius: 32px;
    padding: 24px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    padding: 12px 0;
  }

  .navLink {
    padding: 8px 12px;
  }

  .playTile {
    width: 80%;
    margin: 16px 0;
  }

  .games-toolbar {
    position: static;
  }

  #refreshGames {
    width: 100%;
  }
}





/*Fireworks effect code*/
  body {
    margin: 0;
    padding: 0;
    background: #000;
  }
  
  .pyro > .before, .pyro > .after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: -120px -218.66667px blue, 248px -16.66667px #00ff84, 190px 16.33333px #002bff, -113px -308.66667px #ff009d, -109px -287.66667px #ffb300, -50px -313.66667px #ff006e, 226px -31.66667px #ff4000, 180px -351.66667px #ff00d0, -12px -338.66667px #00f6ff, 220px -388.66667px #99ff00, -69px -27.66667px #ff0400, -111px -339.66667px #6200ff, 155px -237.66667px #00ddff, -152px -380.66667px #00ffd0, -50px -37.66667px #00ffdd, -95px -175.66667px #a6ff00, -88px 10.33333px #0d00ff, 112px -309.66667px #005eff, 69px -415.66667px #ff00a6, 168px -100.66667px #ff004c, -244px 24.33333px #ff6600, 97px -325.66667px #ff0066, -211px -182.66667px #00ffa2, 236px -126.66667px #b700ff, 140px -196.66667px #9000ff, 125px -175.66667px #00bbff, 118px -381.66667px #ff002f, 144px -111.66667px #ffae00, 36px -78.66667px #f600ff, -63px -196.66667px #c800ff, -218px -227.66667px #d4ff00, -134px -377.66667px #ea00ff, -36px -412.66667px #ff00d4, 209px -106.66667px #00fff2, 91px -278.66667px #000dff, -22px -191.66667px #9dff00, 139px -392.66667px #a6ff00, 56px -2.66667px #0099ff, -156px -276.66667px #ea00ff, -163px -233.66667px #00fffb, -238px -346.66667px #00ff73, 62px -363.66667px #0088ff, 244px -170.66667px #0062ff, 224px -142.66667px #b300ff, 141px -208.66667px #9000ff, 211px -285.66667px #ff6600, 181px -128.66667px #1e00ff, 90px -123.66667px #c800ff, 189px 70.33333px #00ffc8, -18px -383.66667px #00ff33, 100px -6.66667px #ff008c;
    -moz-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -webkit-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -o-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -ms-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards; }
  
  .pyro > .after {
    -moz-animation-delay: 1.25s, 1.25s, 1.25s;
    -webkit-animation-delay: 1.25s, 1.25s, 1.25s;
    -o-animation-delay: 1.25s, 1.25s, 1.25s;
    -ms-animation-delay: 1.25s, 1.25s, 1.25s;
    animation-delay: 1.25s, 1.25s, 1.25s;
    -moz-animation-duration: 1.25s, 1.25s, 6.25s;
    -webkit-animation-duration: 1.25s, 1.25s, 6.25s;
    -o-animation-duration: 1.25s, 1.25s, 6.25s;
    -ms-animation-duration: 1.25s, 1.25s, 6.25s;
    animation-duration: 1.25s, 1.25s, 6.25s; }
  
  @-webkit-keyframes bang {
    from {
      box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white; } }
  @-moz-keyframes bang {
    from {
      box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white; } }
  @-o-keyframes bang {
    from {
      box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white; } }
  @-ms-keyframes bang {
    from {
      box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white; } }
  @keyframes bang {
    from {
      box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white; } }
  @-webkit-keyframes gravity {
    to {
      transform: translateY(200px);
      -moz-transform: translateY(200px);
      -webkit-transform: translateY(200px);
      -o-transform: translateY(200px);
      -ms-transform: translateY(200px);
      opacity: 0; } }
  @-moz-keyframes gravity {
    to {
      transform: translateY(200px);
      -moz-transform: translateY(200px);
      -webkit-transform: translateY(200px);
      -o-transform: translateY(200px);
      -ms-transform: translateY(200px);
      opacity: 0; } }
  @-o-keyframes gravity {
    to {
      transform: translateY(200px);
      -moz-transform: translateY(200px);
      -webkit-transform: translateY(200px);
      -o-transform: translateY(200px);
      -ms-transform: translateY(200px);
      opacity: 0; } }
  @-ms-keyframes gravity {
    to {
      transform: translateY(200px);
      -moz-transform: translateY(200px);
      -webkit-transform: translateY(200px);
      -o-transform: translateY(200px);
      -ms-transform: translateY(200px);
      opacity: 0; } }
  @keyframes gravity {
    to {
      transform: translateY(200px);
      -moz-transform: translateY(200px);
      -webkit-transform: translateY(200px);
      -o-transform: translateY(200px);
      -ms-transform: translateY(200px);
      opacity: 0; } }
  @-webkit-keyframes position {
    0%, 19.9% {
      margin-top: 10%;
      margin-left: 40%; }
  
    20%, 39.9% {
      margin-top: 40%;
      margin-left: 30%; }
  
    40%, 59.9% {
      margin-top: 20%;
      margin-left: 70%; }
  
    60%, 79.9% {
      margin-top: 30%;
      margin-left: 20%; }
  
    80%, 99.9% {
      margin-top: 30%;
      margin-left: 80%; } }
  @-moz-keyframes position {
    0%, 19.9% {
      margin-top: 10%;
      margin-left: 40%; }
  
    20%, 39.9% {
      margin-top: 40%;
      margin-left: 30%; }
  
    40%, 59.9% {
      margin-top: 20%;
      margin-left: 70%; }
  
    60%, 79.9% {
      margin-top: 30%;
      margin-left: 20%; }
  
    80%, 99.9% {
      margin-top: 30%;
      margin-left: 80%; } }
  @-o-keyframes position {
    0%, 19.9% {
      margin-top: 10%;
      margin-left: 40%; }
  
    20%, 39.9% {
      margin-top: 40%;
      margin-left: 30%; }
  
    40%, 59.9% {
      margin-top: 20%;
      margin-left: 70%; }
  
    60%, 79.9% {
      margin-top: 30%;
      margin-left: 20%; }
  
    80%, 99.9% {
      margin-top: 30%;
      margin-left: 80%; } }
  @-ms-keyframes position {
    0%, 19.9% {
      margin-top: 10%;
      margin-left: 40%; }
  
    20%, 39.9% {
      margin-top: 40%;
      margin-left: 30%; }
  
    40%, 59.9% {
      margin-top: 20%;
      margin-left: 70%; }
  
    60%, 79.9% {
      margin-top: 30%;
      margin-left: 20%; }
  
    80%, 99.9% {
      margin-top: 30%;
      margin-left: 80%; } }
  @keyframes position {
    0%, 19.9% {
      margin-top: 10%;
      margin-left: 40%; }
  
    20%, 39.9% {
      margin-top: 40%;
      margin-left: 30%; }
  
    40%, 59.9% {
      margin-top: 20%;
      margin-left: 70%; }
  
    60%, 79.9% {
      margin-top: 30%;
      margin-left: 20%; }
  
    80%, 99.9% {
      margin-top: 30%;
      margin-left: 80%; } }
  