@font-face {
  font-family: 'MinecraftFont';
  src: local('Courier New');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Courier New', 'MinecraftFont', monospace;
  color: #ffffff;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

body {
  background-color: #3d3d3d;
  background-image:
    linear-gradient(45deg, #3a3a3a 25%, transparent 25%),
    linear-gradient(-45deg, #3a3a3a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #3a3a3a 75%),
    linear-gradient(-45deg, transparent 75%, #3a3a3a 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

#game_frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  z-index: 1;
}

#protocol-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.protocol-box {
  background: #c6c6c6;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  padding: 4px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 3px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 0 0 0 1px #000000;
}

.protocol-box h2 {
  color: #ffffff;
  text-shadow: 2px 2px 0 #3f3f3f;
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  background: #3d3d3d;
  padding: 8px;
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
}

.protocol-content {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #ffffff;
  color: #000000;
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  font-size: 12px;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
}

.protocol-content p {
  margin-bottom: 8px;
}

.protocol-content strong {
  color: #000000;
  font-weight: bold;
}

.btn-group {
  margin-top: 10px;
  text-align: center;
}

.mc-btn {
  display: inline-block;
  padding: 8px 28px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #3f3f3f;
  background: #7a7a7a;
  border: 3px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  transition: none;
  user-select: none;
}

.mc-btn:hover {
  background: #909090;
  color: #ffffa0;
}

.mc-btn:active {
  background: #5a5a5a;
  border-color: #555555 #ffffff #ffffff #555555;
}

.mc-btn.green {
  background: #3a9d3a;
}
.mc-btn.green:hover { background: #4abf4a; }
.mc-btn.green:active { background: #2d7a2d; }

.mc-btn.gold {
  background: #b8860b;
}
.mc-btn.gold:hover { background: #daa520; }
.mc-btn.gold:active { background: #8b6508; }

.mc-btn.red {
  background: #a03030;
}
.mc-btn.red:hover { background: #c04040; }
.mc-btn.red:active { background: #802020; }

#main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 10;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><rect width='64' height='64' fill='%236b4423'/><rect x='0' y='0' width='16' height='16' fill='%237a4d28'/><rect x='32' y='16' width='16' height='16' fill='%235d3a1e'/><rect x='16' y='32' width='16' height='16' fill='%237a4d28'/><rect x='48' y='48' width='16' height='16' fill='%235d3a1e'/><rect x='0' y='48' width='16' height='16' fill='%236b4423'/></svg>");
  background-size: 64px 64px;
}

.menu-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.menu-top-bar {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #000000;
}

.menu-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 3px 3px 0 #3f3f3f;
  letter-spacing: 2px;
}

.menu-title .accent {
  color: #ffff00;
}

.top-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
}

.player-indicator .avatar {
  width: 24px;
  height: 24px;
  background: #3a9d3a;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.player-indicator .name {
  font-size: 13px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
}

.player-indicator .name:hover {
  color: #ffff00;
}

.lang-select {
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: #c6c6c6;
  color: #000;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  cursor: pointer;
}

.menu-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.menu-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-right: 2px solid #000;
  min-width: 140px;
}

.tab-btn {
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #3f3f3f;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  letter-spacing: 1px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: #c6c6c6;
  color: #000000;
  text-shadow: none;
  border-color: #ffffff #555555 #555555 #ffffff;
}

.tab-btn .icon {
  margin-right: 8px;
}

.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
}

.panel {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.panel.active {
  display: flex;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.panel-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 3px 3px 0 #3f3f3f;
  letter-spacing: 1px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.home-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.home-logo {
  font-size: 56px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 4px 4px 0 #3f3f3f, 8px 8px 0 rgba(0,0,0,0.3);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.home-logo .accent {
  color: #ffff00;
}

.home-subtitle {
  font-size: 14px;
  color: #c0c0c0;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 36px;
  letter-spacing: 2px;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
}

.home-actions .mc-btn {
  width: 100%;
}

.profile-card {
  background: #c6c6c6;
  padding: 4px;
  border: 3px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  margin-bottom: 16px;
}

.profile-card-inner {
  background: rgba(0, 0, 0, 0.6);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: #3a9d3a;
  border: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 22px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.profile-label {
  font-size: 12px;
  color: #a0a0a0;
  text-shadow: 1px 1px 0 #000;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.mc-input {
  width: 100%;
  padding: 8px 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #000000;
  color: #ffffff;
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  outline: none;
}

.mc-input:focus {
  border-color: #ffff00;
}

.mc-input::placeholder {
  color: #555555;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 8px;
}

.setting-name {
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
}

.setting-control {
  display: flex;
  gap: 4px;
  align-items: center;
}

.setting-control .mc-btn {
  padding: 4px 12px;
  font-size: 12px;
}

.setting-value {
  min-width: 80px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000;
}

.friend-item,
.server-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 8px;
  gap: 12px;
}

.friend-item:hover,
.server-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.friend-avatar,
.server-icon {
  width: 40px;
  height: 40px;
  background: #3a9d3a;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  flex-shrink: 0;
}

.server-icon {
  background: #2d6fdc;
}

.server-icon.relay {
  background: #8b5cf6;
  font-size: 14px;
}

.server-item.builtin {
  opacity: 0.95;
}

.builtin-tag,
.relay-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  margin-left: 6px;
  border: 1px solid;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.builtin-tag {
  color: #b8860b;
  border-color: #b8860b;
  background: rgba(184, 134, 11, 0.15);
}

.relay-tag {
  color: #8b5cf6;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

.friend-info,
.server-info {
  flex: 1;
  min-width: 0;
}

.friend-name,
.server-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.friend-server,
.server-addr {
  font-size: 11px;
  color: #a0a0a0;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 2px;
}

.friend-note,
.server-desc {
  font-size: 11px;
  color: #808080;
  text-shadow: 1px 1px 0 #000;
}

.friend-actions,
.server-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.small-btn {
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 0 #3f3f3f;
  background: #7a7a7a;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.small-btn:hover { background: #909090; color: #ffffa0; }
.small-btn.green { background: #3a9d3a; }
.small-btn.green:hover { background: #4abf4a; }
.small-btn.red { background: #a03030; }
.small-btn.red:hover { background: #c04040; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #a0a0a0;
  text-shadow: 2px 2px 0 #000;
  font-size: 13px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #000000;
  z-index: 100;
}

.loading-text {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 4px 4px 0 #3f3f3f;
  letter-spacing: 3px;
  margin-bottom: 32px;
}

.loading-text .dot {
  animation: blink 1s infinite;
}
.loading-text .dot:nth-child(2) { animation-delay: 0.2s; }
.loading-text .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.progress-container {
  width: 80%;
  max-width: 420px;
}

.progress-bar-outer {
  width: 100%;
  height: 20px;
  background: #000000;
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  padding: 2px;
  margin-bottom: 10px;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #3a9d3a 0px,
    #3a9d3a 8px,
    #2d7a2d 8px,
    #2d7a2d 16px
  );
  transition: width 0.2s linear;
}

.progress-text {
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  font-size: 12px;
  letter-spacing: 1px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #3d3d3d;
  border: 1px solid #000;
}

::-webkit-scrollbar-thumb {
  background: #7a7a7a;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
}

::-webkit-scrollbar-thumb:hover {
  background: #909090;
}

@media (max-width: 768px) {
  .menu-top-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .menu-title {
    font-size: 18px;
  }

  .menu-body {
    flex-direction: column;
  }

  .menu-tabs {
    flex-direction: row;
    min-width: 0;
    padding: 6px;
    gap: 2px;
    border-right: none;
    border-bottom: 2px solid #000;
    overflow-x: auto;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .menu-content {
    padding: 12px;
  }

  .home-logo {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .home-actions {
    width: 100%;
    max-width: 280px;
  }

  .profile-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .server-item,
  .seed-item {
    padding: 8px;
    gap: 8px;
  }

  .server-icon,
  .seed-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }
}

.tab-btn {
  position: relative;
}

.seed-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 8px;
  gap: 12px;
}

.seed-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.seed-icon {
  width: 40px;
  height: 40px;
  background: #3a7d3a;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.seed-info {
  flex: 1;
  min-width: 0;
}

.seed-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.seed-code {
  font-size: 12px;
  color: #c0c0c0;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 2px;
}

.seed-code strong {
  color: #ffff00;
  letter-spacing: 1px;
}

.seed-desc {
  font-size: 11px;
  color: #808080;
  text-shadow: 1px 1px 0 #000;
}

.seed-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.guide-section {
  margin-bottom: 24px;
}

.guide-section-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 12px;
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 255, 0, 0.3);
}

.guide-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 6px;
}

.guide-card-q {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}

.guide-card-q:hover {
  background: rgba(255, 255, 255, 0.08);
}

.guide-arrow {
  color: #ffff00;
  font-size: 12px;
}

.guide-card-a {
  padding: 10px 14px;
  font-size: 12px;
  color: #c0c0c0;
  text-shadow: 1px 1px 0 #000;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
}

.control-key {
  min-width: 70px;
  padding: 4px 8px;
  background: #3d3d3d;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  color: #ffff00;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px;
}

.control-desc {
  font-size: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 6px;
}

.command-cmd {
  min-width: 180px;
  padding: 4px 8px;
  background: #1a1a2e;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  color: #4ecca3;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.command-desc {
  font-size: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
  flex: 1;
}

.settings-divider {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.data-stats {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  padding: 12px;
  margin-bottom: 12px;
}

.data-stat-item {
  font-size: 12px;
  color: #c0c0c0;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 6px;
}

.data-stat-item strong {
  color: #ffff00;
}

.recipe-search-bar {
  margin-bottom: 12px;
}

.recipe-search-input {
  width: 100%;
}

.recipe-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.recipe-cat-btn {
  padding: 6px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 0 #3f3f3f;
  background: #5a5a5a;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.recipe-cat-btn:hover {
  background: #7a7a7a;
  color: #ffffa0;
}

.recipe-cat-btn.active {
  background: #3a9d3a;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.recipe-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  padding: 12px;
}

.recipe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.recipe-card-name {
  font-size: 13px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.5px;
}

.recipe-card-output {
  font-size: 11px;
  color: #4ecca3;
  text-shadow: 1px 1px 0 #000;
}

.recipe-card-body {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.recipe-card-pattern {
  font-size: 11px;
  color: #808080;
  text-shadow: 1px 1px 0 #000;
  text-align: center;
}

.recipe-craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 2px;
}

.recipe-slot {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-slot.filled {
  background: rgba(139, 139, 139, 0.3);
}

.recipe-slot.filled span {
  font-size: 9px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  text-align: center;
  line-height: 1.1;
}

.recipe-slot.result {
  background: rgba(255, 255, 0, 0.15);
  border-color: #ffff00;
}

.recipe-smelt-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-smelt-arrow {
  font-size: 20px;
}

.recipe-smelt-label {
  text-align: center;
  font-size: 11px;
  color: #ff6b35;
  margin-bottom: 6px;
  text-shadow: 1px 1px 0 #000;
}

@media (max-width: 768px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .controls-grid {
    grid-template-columns: 1fr;
  }

  .command-cmd {
    min-width: 130px;
    font-size: 10px;
  }

  .ore-table {
    font-size: 10px;
  }

  .ore-name, .ore-y, .ore-tool, .ore-use {
    padding: 4px !important;
  }
}

.ore-table {
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 12px;
  overflow-x: auto;
}

.ore-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  background: #3d3d3d;
  padding: 8px;
  font-size: 11px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 2px solid #000;
}

.ore-header span {
  text-align: center;
}

.ore-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
  padding: 6px 8px;
  font-size: 11px;
  color: #c0c0c0;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ore-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ore-name {
  color: #ffff00;
  font-weight: bold;
}

.ore-y {
  color: #4ecca3;
  text-align: center;
}

.ore-tool {
  color: #ddd;
  text-align: center;
}

.ore-use {
  color: #a0a0a0;
}

.danger-level {
  font-size: 11px;
  letter-spacing: 1px;
}

.mob-hp {
  font-size: 11px;
  color: #ff6b6b;
  text-shadow: 1px 1px 0 #000;
}

.enchant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-color: #555555 #ffffff #ffffff #555555;
  margin-bottom: 6px;
}

.enchant-name {
  min-width: 140px;
  font-size: 13px;
  font-weight: bold;
  color: #a335ee;
  text-shadow: 2px 2px 0 #000;
}

.enchant-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.enchant-desc {
  font-size: 11px;
  color: #c0c0c0;
  text-shadow: 1px 1px 0 #000;
}

.enchant-target {
  font-size: 10px;
  color: #ffd700;
  text-shadow: 1px 1px 0 #000;
}

#enhancer-fs-btn,
#enhancer-menu-btn {
  position: fixed;
  top: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  z-index: 50;
  font-family: 'Courier New', monospace;
  user-select: none;
}

#enhancer-fs-btn {
  right: 10px;
}

#enhancer-menu-btn {
  right: 52px;
  color: #ff6b6b;
}

#enhancer-fs-btn:hover,
#enhancer-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.enhancer-notif {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0, 0, 0, 0.85);
  color: #ffff00;
  padding: 10px 24px;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  text-shadow: 2px 2px 0 #000;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.enhancer-notif.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.recipe-no-grid {
  text-align: center;
  color: #666;
  padding: 20px;
}

.recipe-count {
  font-size: 12px;
  color: #a0a0a0;
  text-shadow: 1px 1px 0 #000;
  margin-left: 12px;
  white-space: nowrap;
}

.recipe-search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
