/* Hamburger Menu */
.hamburger-menu {
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #FFD700;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.hamburger-menu.active {
  display: none;
}

.hamburger-menu:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.hamburger-menu:active {
  transform: scale(0.95);
}

.hamburger-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFD700;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  transform: scale(0);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.menu-content {
  background: rgba(17, 17, 17, 0.75);
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 20px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  color: #FFD700;
  font-family: Arial, sans-serif;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.8s ease 0.2s;
}

.menu-overlay.active .menu-content {
  transform: scale(1);
}

.menu-content h2 {
  margin: 0 0 15px 0;
  text-align: center;
  font-size: 1.5em;
}

.menu-content h3 {
  margin: 15px 0 8px 0;
  color: #FFD700;
  font-size: 1.2em;
}

.menu-content p {
  margin: 8px 0;
  line-height: 1.4;
}

.menu-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.menu-content li {
  margin: 4px 0;
  line-height: 1.3;
}

.close-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-menu:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
}

.close-menu:active {
  transform: scale(0.95);
}

/* Mobile Controls */
.mobile-controls {
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  padding: 0 10px;
}

.control-row {
  display: none;
}

.control-btn {
  width: 55px;
  height: 55px;
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid #FFD700;
  border-radius: 50%;
  color: #FFD700;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: manipulation;
  margin: 0;
}

.control-btn:active {
  background: rgba(255, 215, 0, 0.5);
  transform: scale(0.95);
}

.control-btn.up { font-size: 20px; }
.control-btn.down { font-size: 20px; }
.control-btn.left { font-size: 20px; }
.control-btn.right { font-size: 20px; }

/* Weapon Controls */
.weapon-controls {
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}

.weapon-btn {
  width: 70px;
  height: 70px;
  background: rgba(255, 69, 0, 0.2);
  border: 2px solid #FF4500;
  border-radius: 50%;
  color: #FF4500;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: manipulation;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.weapon-btn.freeze-wind {
  background: rgba(0, 191, 255, 0.2);
  border-color: #00BFFF;
  color: #00BFFF;
}

.weapon-btn:disabled {
  opacity: 0.3;
  background: rgba(100, 100, 100, 0.3);
  border-color: #666;
  color: #666;
  cursor: not-allowed;
}

.weapon-btn.freeze-wind:disabled {
  background: rgba(100, 100, 100, 0.3);
  border-color: #666;
  color: #666;
}

.weapon-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.weapon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.weapon-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.cooldown-text {
  font-size: 8px;
  font-family: monospace;
  text-align: center;
  line-height: 1;
}

.cooldown-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 215, 0, 0.3) 0deg, transparent 0deg);
  transition: background 0.1s linear;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-90deg);
}

.weapon-btn .weapon-icon,
.weapon-btn .cooldown-text {
  position: relative;
  z-index: 2;
} 