/* Fruit Collect — viewport-adaptive playfield */

@media screen and (max-height: 640px) {
  #fcPlayShell .container.container-single {
    padding-top: 3px !important;
  }
}

#fcPlayShell.game-worlds-play-shell {
  min-height: 0;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 130% 90% at 50% 45%, rgba(0, 242, 255, 0.045) 0%, transparent 52%),
    radial-gradient(ellipse 85% 100% at 0% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
    radial-gradient(ellipse 85% 100% at 100% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
    linear-gradient(165deg, #05070c 0%, #0c1118 42%, #080b10 100%);
}

#fcPlayShell.game-worlds-play-shell:not([data-fc-sized]) {
  height: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

#fcPlayShell .fc-outer-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.game-worlds-body #fcPlayShell #gamebox.fc-gamebox,
#fcPlayShell #gamebox.fc-gamebox,
#fcPlayShell .fc-gamebox#gamebox {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #161c1c;
  border: 2px solid #313131;
}

#fcPlayShell #scoreAndTime {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 4px 12px;
  box-sizing: border-box;
}

#fcPlayShell #scoreBoard,
#fcPlayShell #remainRow,
#fcPlayShell #remain,
#fcPlayShell #timer {
  position: static;
  float: none;
  left: auto;
  right: auto;
  top: auto;
  width: auto;
  height: auto;
  padding: 0;
}

#fcPlayShell #scoreBoard,
#fcPlayShell #remain {
  font-size: 24px;
  color: #fff;
}

#fcPlayShell #remainRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#fcPlayShell #timer {
  color: red;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

#fcPlayShell #gameArea {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#fcPlayShell #imgAndScore {
  position: relative;
  flex: 0 0 auto;
  top: auto;
  width: 100%;
  min-height: 40px;
  height: auto;
  padding: 5px 10px;
  box-sizing: border-box;
  background: #888;
  border-radius: 0;
  color: #000;
}

#fcPlayShell .fruit {
  animation: fc-popIn 0.5s ease;
}

#fcPlayShell #collector {
  width: 50px;
  height: 25px;
  background-image: url('/play/fruit-collect/images/collector.png');
  background-size: cover;
  position: absolute;
  z-index: 1;
}

#fcPlayShell #gameover {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  text-align: center;
  background-color: rgba(22, 28, 28, 0.95);
  z-index: 2;
}

#fcPlayShell #gameover #msg {
  font-family: Arial, sans-serif;
  font-size: 36px;
  color: red;
  margin: 0 auto;
  margin-top: min(120px, 18%);
  font-weight: bold;
}

#fcPlayShell #gameover #scoreGameOver {
  font-family: Arial, sans-serif;
  font-size: 36px;
  color: #fff;
  margin: 20px auto 0;
  font-weight: bold;
}

#fcPlayShell #gameover #restartbtn {
  display: block;
  margin: 30px auto 16px;
  width: 160px;
  padding: 5px;
  background-color: #00BB00;
  font-family: Arial, sans-serif;
  font-size: 36px;
  color: red;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

@keyframes fc-popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#fcPlayShell .collected {
  animation: fc-popOut 0.5s ease forwards;
}

@keyframes fc-popOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0);
    opacity: 0;
  }
}
