@font-face {
  font-family: "KidGames";
  src: url(../fonts/KidGames.ttf);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; }
button { font-family: 'KidGames'; }
button:focus, img:focus, :focus {
  outline: none !important;
  box-shadow: none !important;
}
img {
  border: none;
  pointer-events: none;
  user-drag: none;
}
button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}	
html, body {
  height: 1280px;
  overflow: hidden;
  background: #000;
  position: relative;
  left: 50%;
  transform: translate(-50%);
  font-family: 'KidGames';
}
.screen {
  width: 720px;
  height: 1280px;
  position: relative;
  background: url('../images/background.png') no-repeat center center;
  background-size: cover;
}
.topbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 120px;
  background-color: #218881;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  color: white;
  z-index: 10;
}

/* AVATAR BLOCK */
.info-box.ton {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-circle-avatar {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 4px solid #094d4b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-bg {
  background-color: #0d625e;
}

.avatar-bg img {
  width: 100%;
  height: 100%;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.avatar-value {
  font-size: 30px;
  color: white;
}

.playername {
  font-size: 15px;
  color: #86b7a3;
  margin-top: 2px;
}


/* TON BLOCK */
.info-box.ton {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ton-bg {
  background-color: #ffe24a;
}

.ton-bg img {
  width: 60px;
  height: 60px;
}

.ton-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ton-value {
  font-size: 30px;
  color: white;
}

.ton-label {
  font-size: 25px;
  color: #86b7a3;
  margin-top: 2px;
}

/* PP BLOCK */
.info-box.pp {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pp-bg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #000;
  background-color: #fe0000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pp-bg img {
  width: 60px;
  height: 60px;
}

.pp-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.pp-value {
  font-size: 30px;
  color: white;
}

.pp-label {
  font-size: 25px;
  color: #86b7a3;
  margin-top: 2px;
}

/* ARROW ICON */
.arrow-icon img {
  width: 84px;
}


.top-timer {
  background-color: #003f3a;
  padding: 10px;
  border-radius: 25px;
  text-align: center;
  font-size: 22px;
  color: #ffeb3b;
  position: absolute;
  bottom: 200px;
  left: 83%;
  transform: translateX(-50%);
  width: 160px;
}


.bottombar {
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%);
width: 450px;
height: 60px;
background-color: #cce0a3;
border-top-left-radius: 30px;
border-top-right-radius: 30px;
z-index: 5;
box-shadow: 0px -1px 7px 1px #283846;
}

.iconsBottom {
	position: absolute;
	bottom: 0px;
	width: 450px;
	display: flex;
	justify-content: space-around;
	align-items: center;
}


.goalkeeper {
  position: absolute;
  top: 540px;
  left: 360px;
  width: 170px;
  height: auto;
  transform: translate(-50%, 0);
  animation: moveGoalkeeper 2s ease-in-out infinite alternate;
}
.goalkeeper.paused {
  animation-play-state: paused;
}
@keyframes moveGoalkeeper {
  0% { left: 260px; }
  100% { left: 460px; }
}
.ball {
  position: absolute;
  top: 860px;
  left: 330px;
  transform: translate(-50%, 0) scale(1);
  width: 180px;
  height: auto;
  transition: top 0.6s ease, left 0.6s ease, transform 0.6s ease, opacity 0.6s ease;
}
.foot {
  position: absolute;
  top: 880px;
  left: -130px;
  transform: rotate(18deg);
  width: 350px;
  height: auto;
}
.shoot-btn {
  position: absolute;
  bottom: 245px;
  left: 83%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #f04d2d, #d93e26);
  color: #fff;
  font-size: 36px;
  padding: 20px 20px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 6px 0 #29292b;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  z-index: 10;
}
.shoot-btn:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 3px 0 #29292b;
}
@keyframes kickFoot {
  0% { transform: rotate(18deg); }
  50% { transform: rotate(-5deg); }
  100% { transform: rotate(18deg); }
}
@keyframes moveFootIn {
  0% { left: -130px; }
  50% { left: -80px; }
  100% { left: -130px; }
}
.foot.kick {
 animation: kickFoot 0.4s ease forwards, moveFootIn 0.4s ease forwards;
}
.ball.goal {
  top: 450px;
  left: 190px;
  transform: translate(-50%, 0) scale(0.3);
}
.ball.save {
  top: 220px;
  left: 640px;
  transform: translate(-50%, 0) scale(0.2);
  opacity: 0;
}
.goalkeeper.saving {
  transform: translate(-50%, 0) translateX(80px);
  transition: transform 0.6s ease;
}
.goal-message {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70px;
  color: yellow;
  text-shadow: 2px 2px 5px #000;
  display: none;
  z-index: 15;
}

.goal-message.fail {
  color: red;
}

/* nel tuo CSS */
.reward-fx {
  position: absolute;
  font-size: 28px;
  font-family: 'KidGames';
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  text-shadow:
	-2px -2px 0 #000,
	2px -2px 0 #000,
	-2px 2px 0 #000,
	2px 2px 0 #000;
}



.reward-fx img {
width: 42px;
height: 42px;
}
.bounce {
animation: bounceFX 0.5s ease-out;
}
@keyframes bounceFX {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
	  
.card-slots {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 8;
}

.card-slot {
  width: 135px;
  height: 180px;
  border-radius: 7px;
  box-shadow: 0 0 8px #000;
  background-color: #fff;
}


#audioToggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
}

#audioToggleIcon {
  width: 48px;
  height: 48px;
  pointer-events: auto;
}
