/* Game Page Styles */
.game-section {
  padding: 40px 0;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.game-title {
  font-family: var(--font-pixel);
  font-size: 28px;
  color: var(--color-electric-blue);
  text-shadow: var(--glow-blue);
}

.game-container {
  margin-bottom: 40px;
}

.crt-frame {
  position: relative;
  width: 100%;
  background-color: var(--color-black);
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  border: 4px solid var(--color-deep-purple);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.crt-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, var(--color-deep-purple), transparent);
  z-index: 1;
  pointer-events: none;
}

.crt-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 2;
}

.crt-frame iframe {
  width: 100%;
  height: 600px;
  border: none;
  background-color: #000;
  position: relative;
  z-index: 1;
}

.game-description {
  background-color: var(--color-dark-gray);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-description h3 {
  font-family: var(--font-retro);
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--color-electric-blue);
  text-shadow: var(--glow-blue);
}

.game-description p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: var(--color-light-gray);
}

.game-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(33.333% - 20px);
}

.pixel-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  background-color: var(--color-deep-purple);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--color-electric-blue);
  border-radius: 4px;
  box-shadow: var(--glow-blue);
}

/* Custom icons using ::before and ::after */
.pixel-icon::before,
.pixel-icon::after {
  content: '';
  position: absolute;
}

/* Crystal icon */
.pixel-icon.crystal::before {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid var(--color-electric-blue);
}

/* Bonus icon */
.pixel-icon.bonus::before {
  content: '+';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

/* Level icon */
.pixel-icon.level::before {
  content: '';
  width: 20px;
  height: 4px;
  background-color: var(--color-electric-blue);
  box-shadow: 0 8px 0 var(--color-electric-blue), 0 16px 0 var(--color-electric-blue);
}

/* Egypt icon */
.pixel-icon.egypt::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--color-neon-green);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Treasure icon */
.pixel-icon.treasure::before {
  content: '';
  width: 20px;
  height: 12px;
  background-color: var(--color-neon-green);
  border-radius: 2px;
}

.pixel-icon.treasure::after {
  content: '';
  width: 10px;
  height: 6px;
  background-color: var(--color-neon-green);
  border-radius: 2px;
  top: 4px;
  left: 15px;
}

/* Pyramid icon */
.pixel-icon.pyramid::before {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid var(--color-neon-green);
}

/* Seven icon */
.pixel-icon.seven::before {
  content: '7';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

/* Fruit icon */
.pixel-icon.fruit::before {
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--color-neon-pink);
  border-radius: 50%;
}

.pixel-icon.fruit::after {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--color-neon-green);
  top: -5px;
  border-radius: 2px 2px 0 0;
}

/* Jackpot icon */
.pixel-icon.jackpot::before {
  content: '$';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

/* Fire icon */
.pixel-icon.fire::before {
  content: '';
  width: 16px;
  height: 20px;
  background-color: #FF5722;
  clip-path: polygon(50% 0%, 70% 25%, 100% 25%, 80% 50%, 100% 75%, 70% 75%, 50% 100%, 30% 75%, 0% 75%, 20% 50%, 0% 25%, 30% 25%);
}

/* Lines icon */
.pixel-icon.lines::before {
  content: '5';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

/* Hot icon */
.pixel-icon.hot::before {
  content: '🔥';
  font-size: 20px;
}

/* Joker icon */
.pixel-icon.joker::before {
  content: 'J';
  color: var(--color-neon-pink);
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.7);
}

/* Expand icon */
.pixel-icon.expand::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-neon-green);
}

.pixel-icon.expand::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-neon-green);
  opacity: 0.5;
}

/* Wild icon */
.pixel-icon.wild::before {
  content: 'W';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

/* Pharaoh icon */
.pixel-icon.pharaoh::before {
  content: '';
  width: 16px;
  height: 20px;
  background-color: var(--color-neon-green);
  clip-path: polygon(0% 0%, 100% 0%, 75% 50%, 100% 100%, 0% 100%, 25% 50%);
}

/* Scarab icon */
.pixel-icon.scarab::before {
  content: '';
  width: 20px;
  height: 10px;
  background-color: var(--color-neon-green);
  border-radius: 10px 10px 0 0;
}

.pixel-icon.scarab::after {
  content: '';
  width: 10px;
  height: 6px;
  background-color: var(--color-neon-green);
  border-radius: 0 0 5px 5px;
  top: 8px;
  left: 15px;
}

/* Ankh icon */
.pixel-icon.ankh::before {
  content: '☥';
  color: var(--color-neon-green);
  font-size: 24px;
  font-weight: bold;
  text-shadow: var(--glow-green);
}

.feature p {
  font-family: var(--font-retro);
  color: var(--color-light-gray);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .game-title {
    font-size: 24px;
  }
  
  .crt-frame iframe {
    height: 400px;
  }
  
  .feature {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .crt-frame iframe {
    height: 300px;
  }
  
  .game-description {
    padding: 20px;
  }
  
  .feature {
    width: 100%;
  }
  
  .game-features {
    gap: 30px;
  }
}