#tutorial-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#tutorial-modal.show {
  display: flex;
}

#tutorial-modal .tutorial-inner {
  background: #000;
  border: 1px solid white;
  width: 80%;
  max-width: 900px;
  height: 85%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.5em;
  border-bottom: 1px solid white;
  background: #000;
  flex-shrink: 0;
}

.tutorial-header h2 {
  margin: 0;
  color: var(--orange);
  font-family: "Courier New", serif;
  font-weight: 700;
  font-size: 1.8em;
}

.tutorial-controls {
  display: flex;
  gap: 1em;
  align-items: center;
}

.tutorial-lang-btn {
  background: #000;
  color: #fff;
  border: 1px solid white;
  cursor: pointer;
  font-family: "Courier New", serif;
  font-size: 1.1em;
  padding: 0.3em 0.8em;
}

.tutorial-lang-btn:hover {
  background: #fff;
  color: #000;
}

.tutorial-close-btn {
  background: #000;
  color: #fff;
  border: 1px solid white;
  cursor: pointer;
  font-family: "Courier New", serif;
  font-size: 1.3em;
  padding: 0.2em 0.7em;
  line-height: 1;
}

.tutorial-close-btn:hover {
  background: #fff;
  color: #000;
}

.tutorial-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5em 2em;
  color: #fff;
  font-size: 1.15em;
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: #444 #000;
}

.tutorial-body hr {
  border: none;
  border-top: 1px solid #444;
  margin: 1.5em 0;
}

.tutorial-body .lang-en,
.tutorial-body .lang-zh {
  display: none;
}

.tutorial-body.show-en .lang-en,
.tutorial-body.show-zh .lang-zh {
  display: block;
}
