* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.arcade-title {
  position: absolute;
  top: 20px;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  font-family: 'Press Start 2P', cursive;
  font-size: 36px;
  animation: glow 1.5s ease-in-out infinite alternate, bounce 0.5s ease-in-out infinite alternate;
  z-index: 10;
}
.left-title { left: 20px; text-align: left; }
.right-title { right: 20px; text-align: right; }
@keyframes glow {
  from { text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff; }
  to { text-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff; }
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
body {
  background-color: #000;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}
.game-container { text-align: center; }
#game-title {
  font-size: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cigarette {
  display: inline-block;
  animation: smoke 1.5s infinite;
  width: 32px;
  height: 32px;
  background-image: url('images/cigarette.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}
.cigarette-before { animation-delay: 0s; }
.cigarette-after { animation-delay: 0.75s; }
@keyframes smoke {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 0.8; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}
.canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
#gameCanvas {
  background-color: #000;
  border: 2px solid #fff;
  width: 800px;
  height: 800px;
}
#leftCanvas, #rightCanvas {
  width: 400px;
  height: 800px;
  background-color: #000;
  border: 2px solid #fff;
}
.game-message {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #ff0000;
  text-shadow: 2px 2px #000;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
}
.game-ui {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.game-ui button {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#toggle-music { order: 1; }
#pause { order: 2; }
#restart { order: 3; }
#score { order: 4; }
#lives { order: 5; }
#score { order: 4; font-size: 16px; }
#lives { order: 5; font-size: 16px; }
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
}
.popup-content {
  background-color: #000;
  border: 2px solid #fff;
  padding: 20px;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  color: #fff;
  font-size: 16px;
  max-width: 80%;
  border-radius: 10px;
}
.popup-content p { margin: 10px 0; }
.popup-content .highlight { color: #00ffff; }
.popup-content .tyfs { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }
.popup-content button {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}
.popup-content button:hover { background-color: #ccc; }
.game-container { pointer-events: none; opacity: 0.5; transition: opacity 0.3s; }
.game-container.active { pointer-events: auto; opacity: 1; }
@media (max-width: 768px) {
  .popup-content { font-size: 12px; padding: 15px; }
  .popup-content button { font-size: 12px; padding: 8px 16px; }
}
@media (max-width: 480px) {
  .popup-content { font-size: 10px; padding: 10px; max-width: 90%; }
  .popup-content button { font-size: 10px; padding: 6px 12px; }
}
#win-card-ui {
  position: absolute;
  top: 500px; 
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border: 2px solid #ff00ff;
  color: #ff00ff;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  display: none;
}
.win-card-ui p { font-size: 16px; margin-bottom: 15px; }
.win-card-ui input {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}
.win-card-ui button {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.win-card-ui button:hover { background-color: #ccc; }
.win-card-ui a {
  display: block;
  margin-top: 15px;
  color: #ff00ff;
  text-decoration: none;
  font-size: 14px;
}
.win-card-ui a:hover { text-decoration: underline; }

.emoji-cigarette {
  display: inline-block;
  animation: smoke 1.5s infinite;
  font-size: 32px;
  vertical-align: middle;
  line-height: 1;
}

.emoji-cigarette-before {
  animation-delay: 0s;
}

.emoji-cigarette-after {
  animation-delay: 0.75s;
}