.language-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.language-modal-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #333;
}

.language-modal-content h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.language-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.language-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

.language-button.selected {
  background-color: #333;
  box-shadow: 
      inset 4px 4px 0 0 #333,
      inset -4px -4px 0 0 #999;
}

.language-back-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
  margin-top: 20px;
}

.language-back-button:hover {
  background-color: #222;
  transform: translateY(-2px);
} .game-controls {
  width: 200px;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  color: white;
  margin-bottom: 5px;
  margin: 0 auto 2px; /* 修改为自动居中 */
  position: relative; /* 新增定位属性 */
  box-sizing: border-box; /* 新增盒模型 */
}

.controls-header {
  margin-bottom: -1px;
}

.controls-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: -2px;
}

.controls-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.controls-value {
  font-size: 16px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.moves-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -1px 0;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.moves-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.moves-value {
  font-size: 18px;
  font-family: var(--en-font-family);
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.moves-value.warning-3,
.moves-value.warning-2,
.moves-value.warning-1 {
  color: #ff4444 !important;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.6) !important;
}

.moves-display.warning-2 {
  background-color: rgba(255, 0, 0, 0.15);
  animation: pulseMedium 1.5s ease-in-out infinite;
}

.moves-value.warning-1 {
  animation: pulseStrong 0.8s ease-in-out infinite;
}

@keyframes pulseMedium {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

@keyframes pulseStrong {
  0% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
  100% { 
    transform: scale(1);
    opacity: 0.8;
  }
}

.options-button {
  width: 100%;
  padding: 15px 5px;
  font-size: 14px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.options-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

.options-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.options-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 300px;
  max-width: 90%;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.modal-button {
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
} .modifier-tooltip {
  z-index: 9999;
  pointer-events: none;
}

.modifier-tooltip-content {
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 16px;
  min-width: 250px;
  max-width: 350px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: var(--main-font-family);
  text-align: center;
}

.modifier-tooltip .modifier-icon {
  font-size: 32px;
  font-family: var(--en-font-family);
  margin-bottom: 12px;
}

.modifier-tooltip .modifier-name {
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.modifier-tooltip .modifier-value {
  color: #fff;
  font-size: 14px;
  margin: 4px 0 12px 0;
}

.modifier-tooltip .modifier-description {
  font-size: 12px;
  color: #aaa;
  margin: 8px 0;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.modifier-tooltip .modifier-unlocked-level {
  margin-top: 12px;
  font-size: 10px;
  color: #777;
  text-transform: uppercase;
}

/* 为了向后兼容，保留原有的类名 */
.skill-tooltip {
  z-index: 9999;
  pointer-events: none;
}

.skill-tooltip-content {
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 16px;
  min-width: 250px;
  max-width: 350px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: var(--main-font-family);
  text-align: center;
}

.skill-tooltip .skill-icon {
  font-size: 32px;
  font-family: var(--en-font-family);
  margin-bottom: 12px;
}

.skill-tooltip .skill-name {
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.skill-tooltip .skill-value {
  color: #fff;
  font-size: 14px;
  margin: 4px 0 12px 0;
}

.skill-tooltip .skill-description {
  font-size: 12px;
  color: #aaa;
  margin: 8px 0;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.skill-tooltip .skill-unlocked-level {
  margin-top: 12px;
  font-size: 10px;
  color: #777;
  text-transform: uppercase;
} .tooltip {
  z-index: 9999;
  pointer-events: none;
}

.tooltip-content {
  background-color: rgba(0, 0, 0, 0.9);
  color: #00ff00;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  min-width: 200px;
  max-width: 300px;
  z-index: 999999;
  font-family: var(--main-font-family);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tooltip-title {
  color: #00ff00;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.tooltip-divider {
  width: 90%;
  height: 1px;
  background-color: #00ff00;
  margin: 4px 0 8px 0;
  opacity: 0.5;
}

.tooltip-description {
  font-size: 12px;
  color: #aaa;
  margin: 4px 0;
  line-height: 1.6;
  text-align: center;
  width: 100%;
}

.milestone-list {
  text-align: left;
  width: 100%;
  padding-left: 10px;
} .skill-bar {
  padding: 0;
  position: absolute;
  bottom: 15px;
  height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  left: 0;
  right: 0;
}

.skill-bar-container {
  display: flex;
  width: 180px;
  height: 100%;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 0px;
  gap: 0px;
}

.skill-icon-container {
  display: flex;
  flex-direction: column;
  width: 70px;
  height: 100%;
  gap: 0px;
  padding: 10px;
  align-items: center;
}

.skill-item-container {
  display: flex;
  align-items: center;
  gap: 0px;
  background-color: #1a1a1a;
  padding: 0px;
  border-radius: 4px;
  margin: -2px;  /* 确保没有外边距 */
}

.skill-level {
  color: white;
  font-size: 12px;
  font-family: var(--en-font-family);
  padding: 1px 1px;
  background-color: #1a1a1a;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
}

.skill-icon {
  position: relative;
  width: 32px;
  height: 32px;
  background-color: #1a1a1a;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-family: var(--en-font-family);
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease;
}

.skill-icon:hover {
  transform: scale(1.1);
}

.experience-bar {
  position: relative;
  width: 90px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.experience-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4CAF50;
  transition: height 0.3s ease;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.experience-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 14px;
  font-family: var(--en-font-family);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.experience-text .level {
  font-weight: bold;
}

.experience-text .values {
  font-size: 12px;
  opacity: 0.8;
} .event-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 5px;
  min-width: 40px;
  margin-left: auto;
}

.event-slot {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2a2a2a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-icon.empty {
  background-color: rgba(0, 0, 0, 0.1);
  cursor: default;
}

.event-icon.selected {
  background-color: #3a3a3a;
  box-shadow: 0 0 0 2px #4a4a4a;
}

.event-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  display: flex;
  gap: 4px;
  margin-top: 4px;
  background: rgba(42, 42, 42, 0.9);
  padding: 4px;
  border-radius: 4px;
  z-index: 10;
}

.action-button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.action-button.move-up,
.action-button.move-down {
  background-color: #4CAF50;
}

.action-button.remove {
  background-color: #f44336;
}

.action-button:hover:not(:disabled) {
  transform: scale(1.1);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.action-button.move-up:hover:not(:disabled),
.action-button.move-down:hover:not(:disabled) {
  background-color: #45a049;
}

.action-button.remove:hover:not(:disabled) {
  background-color: #da190b;
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
} .score-bar {
  padding: 0;
  position: absolute;
  bottom: 15px;
  height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  left: 0;
  right: 0;
}

.score-bar-container {
  display: flex;
  align-items: stretch;
  height: 620px;
  padding: 5px;
  gap: 10px;
  background-color: #1a1a1a;
  border-radius: 8px;
  width: 180px;
}

.score-progress-container {
  position: relative;
  width: 90px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: visible;
}

.event-bar-container {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  max-width: 70px;
}

.score-level {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFD700;
  transition: height 0.3s ease;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.score-level.boss {
  background-color: #FF4D4D;
  box-shadow: 0 0 10px #FF4D4D;
}

.score-text {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -30px;
  color: white;
  font-size: 16px;
  z-index: 1;
  font-weight: bold;
}

.score-text .stage-name {
  font-size: 12px;
  opacity: 0.8;
}

.score-text .current {
  font-weight: bold;
  font-size: 16px;
}

.milestone-container {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  transform: translateY(50%);
}

.milestone-score-line {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  width: 100%;
  justify-content: center;
}

.milestone-tick {
  width: 28px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.milestone-tick.reached {
  background-color: rgba(255, 255, 255, 0);
}

.milestone-tick.boss {
  background-color: rgba(255, 255, 255, 0.7);
}

.milestone-score {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-family: var(--en-font-family);
  transition: all 0.3s ease;
}

.milestone-score.reached {
  color: rgba(255, 255, 255, 0);
  text-shadow: none;
}

.milestone-icon {
  position: absolute;
  right: -30px;
  font-size: 16px;
  font-family: var(--en-font-family);
  opacity: 1;
  transition: all 0.3s ease;
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.milestone-icon.reached {
  opacity: 0.5;
  transform: scale(1);
  filter: none;
}

.score-limit-container {
  position: absolute;
  width: 100%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateY(-50%);
}

.score-limit-tick {
  width: 28px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.score-limit-score {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-family: var(--en-font-family);
}
.stage-info {
  width: 200px;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  color: white;
  margin-bottom: 5px;
}

.stage-header {
  margin-bottom: 1px;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.stage-type {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stage-level {
  font-size: 16px;
  font-family: var(--en-font-family);
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.stage-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0px;
  padding: 1px;
}

.stage-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.score-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-size: 16px;
  font-family: var(--en-font-family);
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.stage-effects {
  margin-top: 1px;
}

.effects-label {
  display: block;
  font-size: 12px;
  font-family: var(--en-font-family);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.effects-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.effect-icon {
  font-size: 20px;
  font-family: var(--en-font-family);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.effect-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
} .level-up-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.level-up-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
}

.level-up-content h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.level-up-content p {
    color: #ccc;
    margin-bottom: 24px;
}

.skill-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.skill-option {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.skill-option:hover {
    background-color: #333;
    border-color: #666;
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 32px;
    font-family: var(--en-font-family);
    margin-bottom: 12px;
}

.skill-info h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.skill-info p {
    color: #999;
    font-size: 14px;
    margin: 4px 0;
}

.skill-description {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

/* 关键词高亮样式 */
.skill-description span {
    transition: all 0.2s ease;
}

/* 关键词解释样式 */
.keyword-explanation {
    margin-top: 4px;
    font-size: 0.85em;
    color: #AAA;
    font-style: italic;
    padding-left: 8px;
    border-left: 2px solid #FFD700;
    margin-bottom: 8px;
    max-width: 100%;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
.skill-description span:hover {
    filter: brightness(1.2);
}

/* 确保技能描述中的文本正确显示 */
.skill-description {
    text-align: left;
    line-height: 1.4;
    margin-top: 8px;
} .stage-completed-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.stage-completed-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    min-width: 480px;
    max-width: 640px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    pointer-events: auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tab-button {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 12px 24px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
}

.tab-button.active {
    background-color: #333;
    border-color: #666;
    color: #fff;
}

.tab-button:hover {
    background-color: #333;
    border-color: #666;
}

.rewards-content h3,
.preview-content h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.upgrades-list::-webkit-scrollbar {
    width: 8px;
}

.upgrades-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.upgrades-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.upgrade-option {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.upgrade-option:hover:not(.disabled) {
    background-color: #333;
    border-color: #666;
    transform: translateX(4px);
}

.upgrade-option.selected {
    background-color: #333;
    border-color: #666;
    transform: translateX(4px);
}

.upgrade-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-icon {
    font-size: 32px;
    font-family: var(--en-font-family);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    border-radius: 8px;
}

.upgrade-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-info h4 {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

.upgrade-info p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.upgrade-description {
    font-size: 0.9em;
    color: #999;
    margin: 0;
}

.error-text {
    color: #ff4444;
    font-size: 0.9em;
    margin: 0;
}

.complete-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.bonus-item {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.bonus-icon {
    font-size: 32px;
    font-family: var(--en-font-family);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    border-radius: 8px;
}

.bonus-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bonus-info h4 {
    color: #fff;
    font-size: 16px;
    margin: 0;
}

.bonus-value {
    color: #4caf50;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.confirm-upgrade {
    background-color: #4a4a4a;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 16px;
}

.confirm-upgrade:hover {
    background-color: #5a5a5a;
}

.preview-content {
    padding: 24px;
}

.preview-content p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.proceed-button {
    background-color: #4a4a4a;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    text-transform: uppercase;
}

.proceed-button:hover {
    background-color: #5a5a5a;
    transform: translateY(-2px);
} .dot-tooltip {
  z-index: 9999;
  pointer-events: none;
}

.dot-tooltip-content {
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  border: 2px solid; /* 边框颜色将由组件动态设置 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  min-width: 220px;
  max-width: 300px;
  z-index: 999999;
  font-family: var(--main-font-family);
  display: flex;
  flex-direction: column;
}

.dot-tooltip-title {
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  /* 颜色将由组件动态设置 */
}

.dot-tooltip-divider {
  width: 100%;
  height: 1px;
  /* 背景颜色将由组件动态设置 */
  margin: 4px 0 8px 0;
  opacity: 0.7;
}

.dot-tooltip-description {
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dot-tooltip-color-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dot-tooltip-color-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.2;
}

.dot-tooltip-label {
  font-size: 11px;
  opacity: 0.8;
  text-align: left;
}

.dot-tooltip-value {
  font-size: 11px;
  text-align: right;
  font-weight: bold;
}

.dot-tooltip-effects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dot-tooltip-effect {
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
} .game-options-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-options-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #333;
}

.game-options-content h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.options-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.option-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.option-button:hover {
  background-color: #222;
  transform: translateY(-2px);
} .game-completed-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-completed-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #333;
}

.game-completed-content.game-completed {
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.game-completed-content.game-over {
  border-color: #ff4444;
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

.game-completed-content h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.game-completed-content.game-completed h2 {
  color: #ffd700;
}

.game-completed-content.game-over h2 {
  color: #ff4444;
}

.completion-message {
  color: #ddd;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.completion-icon {
  font-size: 64px;
  font-family: var(--en-font-family);
  margin: 20px 0;
  animation: pulse 2s infinite;
}

.options-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.option-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.option-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
} .tutorial-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.tutorial-content {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #4a86e8;
  box-shadow: 0 0 30px rgba(74, 134, 232, 0.3);
}

.tutorial-content h2 {
  color: #4a86e8;
  font-size: 24px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tutorial-message {
  color: #ddd;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.tutorial-icon {
  font-size: 64px;
  font-family: var(--en-font-family);
  margin: 20px 0;
  animation: pulse 2s infinite;
}

.options-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.option-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.option-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
} .title-playground-container {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

.title-input-container {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.title-input {
  flex: 1;
  padding: 10px 15px;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  outline: none;
}

.close-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  padding: 0 15px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: #ff4d4d;
}

.color-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  box-shadow: 0 0 0 3px white;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
} #root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* 调试按钮样式 */
.debug-button {
  background-color: rgba(255, 100, 100, 0.7);
  border: 2px solid rgba(255, 200, 200, 0.8);
}

.debug-button:hover {
  background-color: rgba(255, 80, 80, 0.9);
}
/* 字体定义 */
@font-face {
  font-family: 'Fusion Pixel';
  src: url('./fusion-pixel-12px-monospaced-latin-BNatJJSm.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  size-adjust: 140%;
}

:root {
  --main-font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
  --en-font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
  --zh-font-family: 'Fusion Pixel', 'Noto Sans CJK SC', system-ui, -apple-system, sans-serif;
}

/* 使用HTML[lang]属性切换字体 */
html[lang="zh"] {
  --main-font-family: var(--zh-font-family);
}

html[lang="ja"] {
  --main-font-family: var(--zh-font-family);
}

html[lang="en"] {
  --main-font-family: var(--en-font-family);
}

html[lang="es"] {
  --main-font-family: var(--en-font-family);
}

html[lang="ru"] {
  --main-font-family: var(--en-font-family);
}

/* 基础样式 */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #111;
  justify-content: flex-start;
  margin: 0;
  min-height: 100vh;
  padding: 20px;
  font-family: var(--main-font-family);
}

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主布局容器 */
.main-layout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  position: relative;
  padding: 0 20px;
  box-sizing: border-box;
  min-height: 100vh;
}

/* 左侧容器 */
.left-container {
  width: 220px;
  height: 770px;
  background-color: #2a2a2a;
  border-radius: 4px;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
  padding: 20px;
  margin-top: 0px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.left-container.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  visibility: visible;
  z-index: 90;
}

.left-container.exiting {
  opacity: 0;
  transform: translateX(-50px);
  transition-delay: 0s;
  visibility: visible;
}

/* 右侧容器 */
.right-container {
  width: 220px;
  height: 770px;
  background-color: #2a2a2a;
  border-radius: 4px;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
  padding: 20px;
  margin-top: 0px;
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.right-container.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  visibility: visible;
  z-index: 90;
}

.right-container.exiting {
  opacity: 0;
  transform: translateX(50px);
  transition-delay: 0s;
  visibility: visible;
}

/* 中央内容区域 */
.center-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  position: relative;
  min-height: 100vh;
}

/* 标题外部容器 - 用于对齐 */
.title-outer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #111;
  padding-top: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 85;
}

.title-outer-container.menu-mode {
  transform: translateY(25vh);
  transition-delay: 0.3s;
}

.title-outer-container.game-mode {
  transform: translateY(0);
  transition-delay: 0s;
}

/* 标题容器 */
.title-container {
  display: inline-flex;
  justify-content: center;
  padding: 4px;
  background-color: #000;
  border-radius: 4px;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

#title {
  border: none;
  background-color: #1a1a1a;
  display: block;
  position: relative;
}

#title::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #666;
  pointer-events: none;
}

/* 游戏内容容器 */
.game-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
  pointer-events: none;
  position: relative;
  visibility: hidden;
  margin-top: 100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 80;
  min-height: 600px;
}

.game-content.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  visibility: visible;
}

.game-content.exiting {
  opacity: 0;
  transform: translateY(20px);
  transition-delay: 0s;
  visibility: visible;
  pointer-events: none;
}

/* 游戏容器 */
.game-container {
  margin-top: 40px;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

#grid {
  border: 2px solid #2a2a2a;
  background-color: #2a2a2a;
}

/* 控制按钮区域 */
.controls {
  margin-top: 20px;
  padding: 15px;
  background-color: #111111;
  border-radius: 10px;
  display: flex;
  gap: 15px;
}

.controls button {
  padding: 12px 20px;
  font-size: 14px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.controls button:hover:not(:disabled) {
  background-color: #222;
  transform: translateY(-2px);
}

.controls button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 
      inset 4px 4px 0 0 #333,
      inset -4px -4px 0 0 #999;
}

/* 像素风格的边框 */
.controls button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #666;
  pointer-events: none;
}

/* 按钮选中状态的样式 */
.controls button.active {
  background-color: #444;
  box-shadow: 
      inset 4px 4px 0 0 #222,
      inset -4px -4px 0 0 #777;
  transform: translateY(2px);
}

/* 禁用状态样式 */
.controls button:disabled,
.controls button.disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: 
      inset -2px -2px 0 0 #555,
      inset 2px 2px 0 0 #777;
}

.controls button:disabled::before,
.controls button.disabled::before {
  border-color: #555;
}

/* 菜单容器 */
.menu-container {
  margin-top: calc(25vh + 200px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.4s;
  visibility: visible;
}

.menu-container.entering {
  opacity: 0;
  transform: translateY(-20px);
  transition-delay: 0.3s;
}

/* 菜单按钮 */
.menu-button {
  width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-family: var(--main-font-family);
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.menu-button:hover {
  background-color: #222;
  transform: translateY(-2px);
}

.menu-button:active {
  transform: translateY(2px);
  box-shadow: 
      inset 4px 4px 0 0 #333,
      inset -4px -4px 0 0 #999;
}

.menu-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #666;
  pointer-events: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background-color: #1a1a1a;
  border: 2px solid #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 24px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.delete-confirm-modal {
  text-align: center;
  min-width: 320px;
  max-width: 480px;
}

.delete-confirm-modal p {
  color: #fff;
  margin: 0 0 20px 0;
  font-size: 16px;
  font-family: var(--main-font-family);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--main-font-family);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
  position: relative;
  box-shadow: 
      inset -2px -2px 0 0 #333,
      inset 2px 2px 0 0 #999;
}

.modal-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #666;
  pointer-events: none;
  border-radius: 4px;
}

.modal-button.confirm {
  background-color: #f44336;
  color: white;
}

.modal-button.cancel {
  background-color: #666;
  color: white;
}

.modal-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.modal-button:active {
  transform: translateY(1px);
  box-shadow: 
      inset 2px 2px 0 0 #333,
      inset -2px -2px 0 0 #999;
}

/* Language Selector Styles */
.language-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-button {
  background-color: #1a1a1a;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
  text-align: left;
}

.language-button:hover {
  background-color: rgba(0, 255, 0, 0.1);
  transform: translateX(5px);
}

.language-button.selected {
  background-color: rgba(0, 255, 0, 0.2);
  border-color: #00ff00;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.option-button {
  background-color: #1a1a1a;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.option-button:hover {
  background-color: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.options-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

/* 游戏控制按钮样式 */
.game-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.control-button {
  width: 100%;
  padding: 10px;
  font-size: 12px;
  color: #fff;
  background-color: #000;
  border: none;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s ease;
  box-shadow: 
      inset -4px -4px 0 0 #333,
      inset 4px 4px 0 0 #999;
}

.control-button:hover:not(:disabled) {
  background-color: #222;
  transform: translateY(-2px);
}

.control-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 
      inset 4px 4px 0 0 #333,
      inset -4px -4px 0 0 #999;
}

.control-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #666;
  pointer-events: none;
}

.control-button:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: 
      inset -2px -2px 0 0 #555,
      inset 2px 2px 0 0 #777;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .main-layout {
    max-width: 96vw;
    gap: 10px;
    padding: 0 10px;
  }
  
  .left-container, .right-container {
    width: 200px;
    padding: 15px;
    height: 730px;
  }
  
  .game-controls, .skill-bar-container, .score-bar-container {
    width: 170px;
  }
  
  .skill-bar, .score-bar {
    bottom: 15px;
  }
}

@media (max-width: 992px) {
  .main-layout {
    max-width: 98vw;
    gap: 5px;
    padding: 0 5px;
  }
  
  .left-container, .right-container {
    width: 180px;
    padding: 10px;
    height: 710px;
  }
  
  .game-controls, .skill-bar-container, .score-bar-container {
    width: 160px;
  }
  
  .skill-bar, .score-bar {
    bottom: 10px;
  }
  
  .control-button {
    font-size: 10px;
    font-family: var(--main-font-family);
    padding: 8px;
  }
}

/* 防止页面滚动 */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* 防止滚动条出现 */
  width: 100%;
  height: 100%;
}

body {
  padding: 0; /* 移除原有的padding: 20px */
}

/* 确保app容器不超过视窗高度 */
.app {
  max-height: 100vh;
  overflow: hidden;
}

/* 调整页脚位置，使其固定在底部 */
.footer {
  position: fixed;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #666;
  z-index: 50;
  padding: 5px 0;
}

/* 完全移除container-spacer */
.container-spacer {
  display: none;
}