/* Retro MU Online Classic UI & Web Theme */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=VT323&display=swap');

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

body, html {
  width: 100%;
  height: 100%;
  background-color: #080612;
  font-family: 'Cinzel', serif, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* ========================================== */
/* 1. WEBSITE & COMMUNITY PORTAL STYLES       */
/* ========================================== */
.web-view {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 20%, #17112e 0%, #080612 80%);
  display: flex;
  flex-direction: column;
}

.web-header {
  background: rgba(12, 14, 20, 0.95);
  border-bottom: 2px solid #66522c;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.web-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.web-logo {
  font-size: 20px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  letter-spacing: 1.5px;
}

.web-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.web-nav a {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.web-nav a:hover {
  color: #ffd700;
}

.mu-btn-play {
  background: linear-gradient(180deg, #cda851 0%, #7c581e 100%);
  border: 1px solid #ffd700;
  color: #ffffff;
  font-family: inherit;
  font-weight: 900;
  padding: 7px 18px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  transition: all 0.2s ease;
}

.mu-btn-play:hover {
  background: linear-gradient(180deg, #ffe075 0%, #a4762c 100%);
  transform: scale(1.05);
}

/* HERO BANNER */
.web-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
}

.hero-section {
  text-align: center;
  padding: 50px 20px 40px;
  background: linear-gradient(180deg, rgba(30, 22, 58, 0.6) 0%, rgba(10, 8, 20, 0.8) 100%);
  border: 2px solid #5a4928;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.15);
  margin-bottom: 30px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.5), 2px 2px 4px #000;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.mu-btn-hero {
  background: linear-gradient(180deg, #b8860b 0%, #634300 100%);
  border: 2px solid #ffd700;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transition: all 0.2s ease;
}

.mu-btn-hero:hover {
  background: linear-gradient(180deg, #d4af37 0%, #855b00 100%);
  transform: translateY(-2px);
}

.mu-btn-hero.secondary {
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border-color: #6b7280;
  box-shadow: none;
}

.mu-btn-hero.secondary:hover {
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  border-color: #9ca3af;
}

/* STATS GRID */
.server-stats-section {
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stat-box {
  background: rgba(18, 20, 28, 0.9);
  border: 1px solid #5a4928;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.stat-box span {
  display: block;
  color: #94a3b8;
  margin-bottom: 4px;
}

.stat-box strong {
  font-size: 18px;
}

/* CONTENT COLUMNS (Rankings + Registration) */
.content-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

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

.ranking-section, .register-section {
  background: rgba(16, 18, 26, 0.95);
  border: 2px solid #5a4928;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.section-header {
  border-bottom: 1px solid #4a3e20;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 17px;
  color: #ffd700;
}

.section-header .subtext {
  font-size: 11px;
  color: #94a3b8;
  font-family: 'Segoe UI', sans-serif;
}

/* RANKING TABLE */
.table-responsive {
  overflow-x: auto;
}

.mu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.mu-table th {
  background: #242936;
  color: #ffd700;
  padding: 8px 10px;
  border-bottom: 2px solid #66522c;
  font-size: 11px;
}

.mu-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #222736;
}

.class-tag {
  display: inline-block;
  padding: 2px 6px;
  background: #141724;
  border: 1px solid #334;
  border-radius: 3px;
  font-size: 10px;
}

/* FORMS */
.mu-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  font-weight: bold;
  color: #ffd700;
}

.form-group input, .form-group-inline input {
  background: #0f1118;
  border: 1px solid #5a4928;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.form-group input:focus, .form-group-inline input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.form-msg {
  font-size: 12px;
  min-height: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.mu-btn-submit {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
  border: 1px solid #4caf50;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 5px;
}

.mu-btn-submit:hover {
  background: linear-gradient(180deg, #388e3c 0%, #2e7d32 100%);
}

.web-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid #222;
  margin-top: 40px;
}

/* ========================================== */
/* 2. OVERLAY SCREENS (Login, Char Select)    */
/* ========================================== */
.overlay-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1a1638 0%, #06050d 90%);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.mu-dialog-box {
  width: 380px;
  background: rgba(16, 18, 26, 0.96);
  border: 2px solid #8c733e;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(212, 175, 55, 0.15);
}

.dialog-header {
  background: linear-gradient(90deg, #3d3018 0%, #614c24 50%, #3d3018 100%);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #8c733e;
  font-size: 13px;
  font-weight: 700;
  color: #ffd700;
}

.dialog-close {
  background: none;
  border: none;
  color: #ffd700;
  font-size: 18px;
  cursor: pointer;
}

.dialog-body {
  padding: 20px;
}

.dialog-logo {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 15px;
}

.dialog-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mu-btn-dialog {
  flex: 1;
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border: 1px solid #6b7280;
  color: #e5e7eb;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mu-btn-dialog.primary {
  background: linear-gradient(180deg, #b8860b 0%, #634300 100%);
  border-color: #ffd700;
  color: #ffffff;
}

.mu-btn-dialog.danger {
  background: linear-gradient(180deg, #991b1b 0%, #581212 100%);
  border-color: #ef4444;
}

.mu-btn-dialog:hover {
  transform: translateY(-1px);
}

/* ========================================== */
/* 3. CHARACTER SELECTION & CREATION          */
/* ========================================== */
.char-select-container, .char-create-container {
  max-width: 900px;
  width: 100%;
  background: rgba(14, 16, 24, 0.95);
  border: 2px solid #8c733e;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.char-select-title {
  font-size: 24px;
  color: #ffd700;
  margin-bottom: 4px;
}

.char-select-subtitle {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 25px;
}

.char-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .char-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.char-slot-card {
  background: #12151e;
  border: 2px solid #4a3e20;
  border-radius: 6px;
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}

.char-slot-card:hover {
  border-color: #ffd700;
  transform: translateY(-3px);
}

.char-slot-card.selected {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
  background: #192030;
}

.char-pedestal-preview {
  font-size: 48px;
  margin: 15px 0;
}

.char-pedestal-empty {
  font-size: 36px;
  color: #4b5563;
  margin: 25px 0;
}

.char-slot-info {
  font-size: 11px;
  line-height: 1.4;
}

.mu-btn-small {
  background: #374151;
  border: 1px solid #6b7280;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
}

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

/* CLASS CREATION CARDS */
.class-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
  text-align: left;
}

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

.class-card {
  background: #141722;
  border: 2px solid #4a3e20;
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.class-card:hover {
  border-color: #ffd700;
}

.class-card.selected {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  background: #1b2233;
}

.class-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.class-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 6px;
}

.class-card-desc {
  font-size: 11px;
  color: #cbd5e1;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.4;
  margin-bottom: 10px;
}

.class-card-stats {
  font-size: 10px;
  color: #00e5ff;
  font-family: 'Segoe UI', sans-serif;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 6px;
  border-radius: 3px;
}

.char-create-form {
  max-width: 450px;
  margin: 0 auto;
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
}

.form-group-inline label {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
}

.form-group-inline input {
  flex: 1;
}

/* ========================================== */
/* 4. IN-GAME HUD & CANVAS STYLES             */
/* ========================================== */
#game-ui-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  image-rendering: pixelated;
}

#top-bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(14, 16, 22, 0.88);
  border: 2px solid #5a4928;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  padding: 6px 18px;
  border-radius: 4px;
  z-index: 50;
}

.top-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
}

#zone-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  border: 1px solid #334;
}

.top-actions {
  display: flex;
  gap: 6px;
}

.mu-btn-top {
  background: linear-gradient(180deg, #3c4048 0%, #1a1c22 100%);
  border: 1px solid #7c6838;
  color: #ffdf79;
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.mu-btn-top:hover {
  border-color: #ffd700;
}

#bottom-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.95) 0%, rgba(10, 11, 14, 0.98) 100%);
  border-top: 3px solid #66522c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 50;
}

.globe-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.globe {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #0d0e12;
  border: 3px solid #4a3e20;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.globe-fill {
  width: 100%;
  height: 100%;
  transition: height 0.25s ease-out;
}

#hp-fill {
  background: radial-gradient(circle at 50% 30%, #ff4b4b 0%, #b80000 70%, #520000 100%);
}

#mp-fill {
  background: radial-gradient(circle at 50% 30%, #4facfe 0%, #0052d4 70%, #001f66 100%);
}

.globe-shine {
  position: absolute;
  top: 6px;
  left: 14px;
  width: 26px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.globe-label {
  font-size: 11px;
  font-weight: 700;
  color: #e0e0e0;
  margin-top: 4px;
}

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 780px;
}

.exp-container {
  width: 100%;
  height: 14px;
  background: #101217;
  border: 1px solid #4a3e20;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.exp-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #ffe875 50%, #d4af37 100%);
  transition: width 0.3s ease;
}

.exp-text {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  line-height: 14px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.potion-slots {
  display: flex;
  gap: 8px;
}

.potion-slot {
  position: relative;
  width: 44px;
  height: 44px;
  background: #141720;
  border: 2px solid #5a4928;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.potion-hotkey {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
}

.potion-count {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 11px;
  font-weight: 700;
}

.skills-quickbar {
  display: flex;
  gap: 6px;
}

.skill-slot {
  position: relative;
  width: 52px;
  height: 48px;
  background: #161822;
  border: 2px solid #4a3e20;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.skill-slot.active {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  background: #1c2333;
}

.skill-hotkey {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
}

.skill-icon {
  font-size: 18px;
  margin-top: 4px;
}

.skill-name {
  font-size: 8px;
  color: #ccc;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-buttons {
  display: flex;
  gap: 6px;
}

.mu-btn-menu {
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #3c4048 0%, #1a1c22 100%);
  border: 2px solid #7c6838;
  color: #ffdf79;
  font-family: inherit;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.network-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
  letter-spacing: 0.5px;
}

#chat-container {
  position: absolute;
  bottom: 98px;
  left: 15px;
  width: 440px;
  height: 190px;
  background: rgba(10, 12, 18, 0.88);
  border: 1.5px solid #5a4928;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), inset 0 0 10px rgba(0, 0, 0, 0.6);
  padding: 6px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

.chat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
  border-bottom: 1px solid #3d3522;
  padding-bottom: 4px;
}

.chat-tab-btn {
  background: rgba(30, 34, 46, 0.6);
  border: 1px solid #3d3522;
  color: #94a3b8;
  font-size: 10px;
  font-family: inherit;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-tab-btn:hover {
  color: #ffd700;
  border-color: #7c6838;
}

.chat-tab-btn.active {
  background: linear-gradient(180deg, #6b5523 0%, #3d3018 100%);
  border-color: #ffd700;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  font-size: 11.5px;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
  margin-bottom: 5px;
}

#chat-messages::-webkit-scrollbar {
  width: 4px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: #5a4928;
  border-radius: 2px;
}

.chat-line {
  word-break: break-word;
}

.chat-time {
  color: #64748b;
  font-size: 10px;
  margin-right: 2px;
}

.chat-clickable-name {
  color: #ffd700;
  cursor: pointer;
  text-decoration: underline dotted;
  transition: color 0.15s ease;
}
.chat-clickable-name:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #ffd700;
}

.chat-sender-name {
  color: #ffd700;
  font-weight: 600;
}

.chat-msg-text {
  color: #f1f5f9;
}

.chat-whisper-tag.incoming {
  color: #e879f9;
  font-weight: 700;
}

.chat-whisper-tag.outgoing {
  color: #f59e0b;
  font-weight: 700;
}

.chat-whisper-text {
  color: #fbbf24;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(251, 191, 36, 0.2);
}

.chat-post-tag {
  color: #38bdf8;
  font-weight: 700;
}

.chat-post-text {
  color: #7dd3fc;
  font-weight: 600;
}

.chat-system-text {
  color: #00ff88;
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 4px;
  background: rgba(15, 18, 26, 0.95);
  border: 1px solid #4a3e20;
  border-radius: 4px;
  padding: 2px;
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 11.5px;
  font-family: 'Segoe UI', sans-serif;
  padding: 4px 8px;
  outline: none;
}

#chat-input::placeholder {
  color: #64748b;
  font-size: 10.5px;
}

.chat-btn-send {
  background: linear-gradient(180deg, #6b5523 0%, #3d3018 100%);
  border: 1px solid #8c733e;
  color: #ffd700;
  font-weight: bold;
  font-size: 12px;
  padding: 0 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-btn-send:hover {
  border-color: #ffd700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.mu-modal {
  position: absolute;
  top: 60px;
  width: 320px;
  background: rgba(16, 18, 24, 0.95);
  border: 2px solid #8c733e;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
}

#stats-panel { left: 20px; }
#inventory-panel { right: 20px; }
#help-panel { left: 50%; transform: translateX(-50%); width: 440px; }

.modal-header {
  background: linear-gradient(90deg, #3d3018 0%, #614c24 50%, #3d3018 100%);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #8c733e;
  font-size: 13px;
  font-weight: 700;
  color: #ffd700;
}

.modal-close {
  background: none;
  border: none;
  color: #ffd700;
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  padding: 12px 16px;
  font-size: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.mu-hr {
  border: none;
  border-top: 1px solid #4a3e20;
  margin: 8px 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0;
}

.mu-btn-plus {
  background: #2a682a;
  border: 1px solid #4cdb4c;
  color: #ffffff;
  font-weight: bold;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 8px;
}

.gear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.gear-slot {
  background: #101217;
  border: 1px solid #3d3522;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 11px;
}

.inv-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.inv-item-card {
  background: #141720;
  border: 1px solid #4a3e20;
  border-radius: 4px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inv-item-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.inv-item-name {
  font-size: 9px;
  word-break: break-word;
}

/* ========================================== */
/* LIVE RADAR MINI-MAP STYLES [M]             */
/* ========================================== */
.mu-minimap-panel {
  position: absolute;
  top: 54px;
  right: 16px;
  width: 246px;
  background: rgba(10, 12, 20, 0.92);
  border: 2px solid #5a4622;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85), inset 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 85;
  user-select: none;
  backdrop-filter: blur(4px);
}

.minimap-header {
  background: linear-gradient(180deg, #1e192c 0%, #100e18 100%);
  border-bottom: 1px solid #4a3818;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

#minimap-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.5px;
}

.minimap-toggle-btn {
  background: #252016;
  border: 1px solid #6b5327;
  color: #ffd700;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 14px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.minimap-toggle-btn:hover {
  background: #45381f;
  border-color: #ffd700;
}

.minimap-body {
  padding: 3px;
  background: #04060a;
}

#minimap-canvas {
  display: block;
  width: 240px;
  height: 135px;
  border: 1px solid #1f2533;
  border-radius: 3px;
  background: #060810;
}

.minimap-legend {
  padding: 4px 8px 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #231b12;
  font-size: 9.5px;
  color: #94a3b8;
  background: rgba(8, 10, 15, 0.85);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-player {
  background: #10b981;
  box-shadow: 0 0 4px #10b981;
}

.dot-monster {
  background: #ef4444;
  box-shadow: 0 0 4px #ef4444;
}

.dot-npc {
  background: #fbbf24;
  box-shadow: 0 0 4px #fbbf24;
}

.dot-portal {
  background: #06b6d4;
  box-shadow: 0 0 4px #06b6d4;
}

/* ========================================== */
/* POPUP MODALS & DIALOGS (Warp, Party, Duel) */
/* ========================================== */
.mu-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  pointer-events: auto;
}

.mu-modal-box {
  background: rgba(14, 17, 24, 0.97);
  border: 2px solid #b8860b;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 215, 0, 0.35);
  border-radius: 8px;
  padding: 20px 24px;
  color: #ffffff;
  font-family: 'Cinzel', serif, sans-serif;
  animation: muModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes muModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mu-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffd700;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  letter-spacing: 1px;
}

.mu-btn {
  background: linear-gradient(180deg, #6b5523 0%, #3d3018 100%);
  border: 1.5px solid #d4af37;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mu-btn:hover {
  background: linear-gradient(180deg, #8c733e 0%, #5a4928 100%);
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}


