:root {
  --font-primary: "Orbitron", sans-serif;
  --font-pixel: "VT323", monospace;
  --color-bg-dark: #020402;
  --color-bg-medium: #0a100a;
  --color-border-light: rgba(100, 255, 110, 0.2);
  --color-border-medium: rgba(100, 255, 110, 0.5);
  --color-primary-glow: rgba(100, 255, 110, 0.8);
  --color-accent: #64ff6e;
  --color-primary-text: #e0f0e1;
  --color-secondary-text: #8a9e8b;
  --color-gold: #ffee77;
  --color-silver: #d0d0d0;
  --color-bronze: #e09a69;
  --transition-fast: 0.2s ease-out;
  --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-primary-text);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
body::before,
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(0, 50, 20, 0.4),
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(0, 40, 30, 0.3), transparent 60%);
  background-size: 200% 200%;
  animation: nebula-pan 60s linear infinite;
}
body::after {
  background-image: radial-gradient(
      circle at 10% 20%,
      white 0.5px,
      transparent 1px
    ),
    radial-gradient(circle at 50% 30%, white 0.5px, transparent 1px),
    radial-gradient(circle at 90% 10%, white 0.5px, transparent 1px),
    radial-gradient(
      circle at 30% 80%,
      var(--color-accent) 0.5px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 60%,
      var(--color-accent) 0.5px,
      transparent 1px
    ),
    radial-gradient(circle at 15% 90%, white 0.5px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.2;
  animation: star-pan 90s linear infinite;
}
@keyframes nebula-pan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes star-pan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(100, 255, 110, 0.05) 3px,
    transparent 4px
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}
.app-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  padding-bottom: 90px;
  z-index: 10;
}
.menu-container {
  position: absolute;
  z-index: 20;
  width: 100%;
  max-width: 450px;
  --hex-color: rgba(100, 255, 110, 0.05);
  background-color: rgba(5, 8, 5, 0.95); /* بهینه شده: جایگزین backdrop-filter */
  background-image: radial-gradient(
      circle at 100% 0%,
      rgba(100, 255, 110, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(100, 255, 110, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(var(--hex-color) 1px, transparent 1px),
    radial-gradient(var(--hex-color) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0, 20px 20px;
  border: 1px solid var(--color-border-medium);
  padding: 20px;
  box-shadow: 0 0 50px rgba(100, 255, 110, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  clip-path: polygon(
    0 15px,
    15px 0,
    calc(100% - 15px) 0,
    100% 15px,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity var(--transition-smooth),
    transform var(--transition-smooth);
  pointer-events: none;
}
.menu-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent), 0 0 30px var(--color-accent);
  opacity: 0.8;
  animation: scan-line-anim 6s linear infinite;
  animation-delay: 2s;
}
@keyframes scan-line-anim {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.menu-container::before,
.menu-container::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  clip-path: polygon(
    0 10px,
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}
.menu-container::before {
  border: 1px solid var(--color-border-light);
}
.menu-container.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.hidden {
  display: none;
}
.menu-header {
  text-align: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.menu-header h2 {
  font-family: var(--font-pixel);
  font-size: 2.5em;
  color: var(--color-accent);
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--color-primary-glow);
  animation: text-flicker 4s infinite alternate;
}
@keyframes text-flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent),
      0 0 40px var(--color-primary-glow);
    opacity: 1;
  }
  20%,
  24%,
  55% {
    text-shadow: none;
    opacity: 0.8;
  }
}
#main-menu .main-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.main-airplane-art {
  width: 60%;
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 30px var(--color-primary-glow));
  animation: airplane-hover 4s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes airplane-hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.game-title {
  font-size: 2.8em;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent),
    0 0 40px var(--color-primary-glow);
  animation: text-flicker 5s infinite alternate;
  margin-bottom: 25px;
}
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: var(--color-bg-medium);
  border-top: 2px solid var(--color-border-medium);
  box-shadow: 0 -5px 30px rgba(100, 255, 110, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.nav-btn {
  background: transparent;
  border: none;
  color: var(--color-secondary-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 5px;
  font-size: 0.7em;
  position: relative;
}
.nav-btn i {
  font-size: 1.8em;
  margin-bottom: 4px;
  transition: var(--transition-fast);
}
.nav-btn:hover i {
  color: #fff;
  transform: translateY(-3px);
  text-shadow: 0 5px 20px var(--color-primary-glow);
}
.nav-btn.active {
  color: var(--color-accent);
}
.nav-btn.active i {
  text-shadow: 0 0 15px var(--color-primary-glow);
}
.menu-btn {
  background: linear-gradient(
    rgba(100, 255, 110, 0.05),
    rgba(100, 255, 110, 0.15)
  );
  border: 1px solid var(--color-border-medium);
  color: var(--color-primary-text);
  font-family: var(--font-primary);
  font-size: 1em;
  font-weight: 700;
  padding: 12px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  clip-path: polygon(
    95% 0,
    100% 25%,
    100% 75%,
    95% 100%,
    5% 100%,
    0 75%,
    0 25%,
    5% 0
  );
  overflow: hidden;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.menu-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary-glow),
    transparent
  );
  transition: left 0.6s ease;
  animation: btn-shine 5s infinite linear 2s;
}
.menu-btn:hover::before {
  left: 100%;
}
@keyframes btn-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
.menu-btn:hover {
  color: var(--color-bg-dark);
  background: var(--color-accent);
  box-shadow: 0 0 25px var(--color-primary-glow);
  text-shadow: none;
}
.menu-btn:active {
  transform: scale(0.97);
}
.menu-btn.primary {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 900;
}
.menu-btn:disabled,
.menu-btn:disabled:hover {
  background: #555;
  color: #999;
  border-color: #777;
  cursor: not-allowed;
  box-shadow: none;
}
.menu-btn:disabled::before {
  display: none;
}
.selections-wrapper,
.shop-content,
.upgrade-content,
.leaderboard-content,
.free-options {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
}
@keyframes item-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.selection-item,
.leaderboard-item,
.free-item,
.podium-item {
  opacity: 0;
  transform: translateY(20px);
  animation: item-fade-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}
.selection-section {
  margin-bottom: 20px;
}
.selection-section h3 {
  font-family: var(--font-pixel);
  font-size: 1.8em;
  color: var(--color-secondary-text);
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 10px var(--color-bg-dark);
}
.selection-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border-light);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  clip-path: polygon(
    0 8px,
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  position: relative;
}
.selection-item img {
  width: 100%;
  max-width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.selection-item p {
  font-size: 0.8em;
  color: var(--color-primary-text);
  line-height: 1.3;
}
.selection-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 20px var(--color-primary-glow);
  border-color: var(--color-accent);
}
.selection-item:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--color-accent));
}
.selection-item.selected {
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 20px var(--color-primary-glow),
    inset 0 0 15px rgba(100, 255, 110, 0.3);
  background-color: rgba(100, 255, 110, 0.1);
}
.selection-item .price {
  font-family: var(--font-pixel);
  font-size: 1.2em;
  color: var(--color-gold);
  margin-top: 5px;
  text-shadow: 0 0 5px #000;
}
.loader {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--color-border-medium);
  border-top-color: var(--color-accent);
  animation: spin 1s linear infinite;
  margin: 40px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.user-stats-display {
  text-align: center;
  margin-bottom: 15px;
  font-family: var(--font-pixel);
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.shop-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-medium);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--color-secondary-text);
  padding: 12px 15px;
  cursor: pointer;
  flex-grow: 1;
  position: relative;
  transition: color var(--transition-fast);
  font-family: var(--font-pixel);
  font-size: 1.5em;
}
.tab-btn.active {
  color: var(--color-accent);
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-primary-glow);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
#leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  margin: 25px 0 30px 0;
  min-height: 160px;
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 32%;
  padding: 10px 5px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid;
}
.podium-item.rank-1 {
  order: 2;
  height: 150px;
  border-color: var(--color-gold);
}
.podium-item.rank-2 {
  order: 1;
  height: 120px;
  border-color: var(--color-silver);
}
.podium-item.rank-3 {
  order: 3;
  height: 100px;
  border-color: var(--color-bronze);
}
.podium-item::before {
  font-size: 2.8em;
  line-height: 1;
  margin-bottom: 8px;
}
.podium-item.rank-1::before {
  content: "醇";
  filter: drop-shadow(0 0 8px var(--color-gold));
}
.podium-item.rank-2::before {
  content: "･;
}
.podium-item.rank-3::before {
  content: "･;
}
.podium-name {
  font-weight: 700;
  font-size: 0.9em;
  max-width: 100%;
  margin-bottom: 5px;
}
.podium-score {
  font-size: 0.8em;
  color: var(--color-secondary-text);
}
.leaderboard-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
  padding: 10px;
  border-left: 3px solid var(--color-border-light);
}
.leaderboard-item.self {
  background: rgba(100, 255, 110, 0.1);
  border-left-color: var(--color-accent);
}
.leaderboard-rank {
  font-size: 1.2em;
  font-weight: 700;
  width: 40px;
  text-align: center;
  margin-right: 15px;
}
.leaderboard-user {
  flex-grow: 1;
  text-align: right;
}
.leaderboard-score {
  color: var(--color-secondary-text);
  font-size: 0.8em;
}
.free-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border: 1px solid var(--color-border-light);
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}
.free-item:hover {
  border-color: var(--color-accent);
  background: rgba(100, 255, 110, 0.05);
}
.free-item-icon {
  font-size: 2em;
  color: var(--color-accent);
  width: 40px;
  text-align: center;
}
.free-item-info {
  flex-grow: 1;
  text-align: right;
}
.free-item h3 {
  margin-bottom: 5px;
  font-size: 1em;
}
.free-item p {
  font-size: 0.8em;
  color: var(--color-secondary-text);
}
.offer-btn {
  padding: 8px 12px !important;
  font-size: 0.8em !important;
  flex-shrink: 0;
}
#waiting-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 8, 5, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
#waiting-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}
.waiting-content {
  text-align: center;
}
.radar-animation {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(100, 255, 110, 0.3);
  position: relative;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.radar-sweep {
  width: 50%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 110, 0.5));
  animation: radar-spin 2s linear infinite;
  border-radius: 0 90px 90px 0;
}
@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.radar-icon {
  font-size: 4em;
  color: var(--color-accent);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
#waiting-message-text {
  font-size: 1.5em;
  color: var(--color-primary-text);
  text-shadow: 0 0 15px var(--color-primary-glow);
  margin-bottom: 30px;
}
.cancel-button {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}
.cancel-button:hover {
  background: rgba(255, 107, 107, 0.2);
}
#notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}
.notification {
  padding: 12px 20px;
  font-family: var(--font-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInOut 4s ease-in-out forwards;
  min-width: 280px;
  text-align: center;
  clip-path: polygon(
    95% 0,
    100% 25%,
    100% 75%,
    95% 100%,
    5% 100%,
    0 75%,
    0 25%,
    5% 0
  );
}
.notification.success {
  background-color: var(--color-accent);
  border: 1px solid #fff;
}
.notification.error {
  background-color: #c62828;
  border: 1px solid #ef5350;
  color: #fff;
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}
#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  overflow: hidden;
  z-index: 5;
}
.road,
.cloud,
.airplane,
.opponent-airplane,
.wingman,
.bullet,
.missile {

  position: absolute;
  pointer-events: none;
}


.road {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
}
.cloud {
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 7;
}
.airplane,
.opponent-airplane,
.wingman {
  z-index: 8;
}
.airplane {
  pointer-events: auto;
}
.bullet,
.missile {
  z-index: 9;
}
#use-potion-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  background: radial-gradient(
    circle,
    rgba(10, 20, 10, 0.7),
    rgba(5, 8, 5, 0.9)
  );
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 100;
  cursor: pointer;
  box-shadow: 0 0 20px var(--color-primary-glow),
    inset 0 0 10px rgba(100, 255, 110, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
  animation: pulse-glow 2.5s infinite;
}
#use-potion-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--color-primary-glow);
}
#use-potion-btn img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #fff);
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--color-primary-glow);
  }
  50% {
    box-shadow: 0 0 35px var(--color-accent);
  }
}
.airplane,
.opponent-airplane {
  position: relative;
  z-index: 8;
}
@keyframes power-flare {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
@keyframes power-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(3px);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    filter: blur(5px);
  }
}
.power-effect::before,
.power-effect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  padding-bottom: 120%;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
}
.power-effect::before {
  background: radial-gradient(
    circle,
    rgba(255, 100, 0, 0.4) 0%,
    rgba(255, 0, 0, 0.2) 60%,
    transparent 100%
  );
  animation: power-pulse 2s ease-in-out infinite;
}
.power-effect::after {
  background: radial-gradient(
    circle,
    white 0%,
    rgba(255, 200, 0, 0.5) 30%,
    rgba(255, 0, 0, 0.3) 70%,
    transparent 100%
  );
  animation: power-flare 1.5s ease-out infinite;
}
@keyframes speed-lines {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100px;
  }
}
.speed-effect::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 10%;
  width: 80%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 220, 255, 0.6) 0px,
    rgba(0, 220, 255, 0.6) 2px,
    transparent 2px,
    transparent 10px
  );
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  opacity: 0.7;
  animation: speed-lines 0.5s linear infinite;
  pointer-events: none;
}
@keyframes shield-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}
@keyframes shield-rotate-reverse {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
.shield-effect::before,
.shield-effect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.shield-effect::before {
  width: 130%;
  height: 130%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50 1, 95 25, 95 75, 50 99, 5 75, 5 25" style="fill:none;stroke:rgba(255,215,0,0.8);stroke-width:2" /></svg>');
  animation: shield-rotate 10s linear infinite,
    shield-breathe 3s ease-in-out infinite;
  box-shadow: 0 0 20px gold;
  border-radius: 50%;
}
.shield-effect::after {
  width: 110%;
  height: 110%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50 1, 95 25, 95 75, 50 99, 5 75, 5 25" style="fill:rgba(255,215,0,0.1);stroke:gold;stroke-width:1" /></svg>');
  animation: shield-rotate-reverse 8s linear infinite,
    shield-breathe 3s ease-in-out 0.5s infinite;
}
@keyframes heal-float {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0) rotate(180deg);
    opacity: 0;
  }
}
.heal-particle {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: #43ff4c;
  text-shadow: 0 0 15px white, 0 0 5px var(--color-accent);
  animation: heal-float 2s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}
.heal-particle::before {
  content: "+";
}
.heal-aura-effect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  padding-bottom: 120%;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(67, 255, 76, 0.5) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  animation: fade-in-out 1.5s ease-out;
  pointer-events: none;
}
@keyframes fade-in-out {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
.opponent-airplane.potion-effect-active::after,
.opponent-airplane.potion-effect-active::before {
  transform: translate(-50%, -50%) rotate(180deg);
}
.app-container.hidden-for-game {
  display: none;
}
#main-menu-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}


.prize-display {
  font-family: var(--font-pixel);
  font-size: 1.3em;
  color: var(--color-gold);
  text-shadow: 0 0 5px #000;
  white-space: nowrap; /* جلوگیری از شکستن خط */
}

/* استایل جایزه برای سکو (پودیوم) */
.podium-item .prize-display {
  font-size: 1.5em; /* کمی بزرگتر */
  text-shadow: 0 0 5px #000, 0 0 10px var(--color-gold);
  margin-bottom: 5px;
}
.podium-item.rank-2 .prize-display {
  color: var(--color-silver);
  text-shadow: 0 0 5px #000, 0 0 10px var(--color-silver);
}
.podium-item.rank-3 .prize-display {
  color: var(--color-bronze);
  text-shadow: 0 0 5px #000, 0 0 10px var(--color-bronze);
}

/* استایل جایزه برای لیست (رتبه‌های ۴ به بعد) و رتبه کاربر */
.leaderboard-item .prize-display {
  margin-right: 10px; /* فاصله از سمت راست */
  margin-left: 5px;  /* فاصله از نام کاربری */
  flex-shrink: 0;   /* جلوگیری از کوچک شدن */
}
