/* ----- Ναρκαλιευτής: φορτώνεται ΜΕΤΑ το style.css ----- */

/* Ενεργό εικονίδιο στο header */
nav a.active {
  color: #FFD700;
}

.ms-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid #FFD700;
  border-radius: 8px;
  text-align: center;
}

.ms-title {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #FFD700;
  font-size: 30px;
  color: #e9d7a6;
}

/* Επίπεδα */
.ms-levels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ms-level,
.ms-btn {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.ms-level:hover,
.ms-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFD700;
}

.ms-level.active,
.ms-btn[aria-pressed="true"] {
  background: #FFD700;
  border-color: #FFD700;
  color: #000;
}

/* Μπάρα πληροφοριών */
.ms-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 16px;
}

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

.ms-stat {
  min-width: 90px;
  padding: 6px 12px;
  background: #1f1f23;
  border: 1px solid #4a4a4f;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff3b3b;
}

.ms-stat i {
  margin-right: 6px;
  font-size: 16px;
  color: #b5b5ba;
}

/* Ταμπλό */
.ms-board-wrap {
  overflow-x: auto;
  padding: 4px 0 10px;
}

.ms-board {
  --cell: 32px;
  display: inline-grid;
  gap: 2px;
  padding: 8px;
  background: #1f1f23;
  border: 1px solid #4a4a4f;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.ms-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cell);
  height: var(--cell);
  box-sizing: border-box;
  background: linear-gradient(145deg, #6a6a70, #4a4a4f);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom-color: rgba(0, 0, 0, 0.5);
  border-right-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: calc(var(--cell) * 0.58);
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ms-cell:not(.open):hover {
  background: linear-gradient(145deg, #7c7c83, #5a5a60);
}

.ms-cell.open {
  background: #2a2a2d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: default;
}

.ms-cell i {
  font-size: 0.85em;
  pointer-events: none;
}

.ms-cell.flag i {
  color: #FFD700;
}

.ms-cell.mine i {
  color: #e9e9ee;
}

.ms-cell.boom {
  background: #b32020;
}

.ms-cell.wrong {
  background: #5a2a2a;
}

.ms-cell.wrong i {
  color: #ff6b6b;
}

.ms-cell.n1 { color: #6ab0ff; }
.ms-cell.n2 { color: #5fd07a; }
.ms-cell.n3 { color: #ff6b6b; }
.ms-cell.n4 { color: #b48cff; }
.ms-cell.n5 { color: #ff9f43; }
.ms-cell.n6 { color: #3ed8d0; }
.ms-cell.n7 { color: #eeeeee; }
.ms-cell.n8 { color: #aaaaaa; }

/* Μηνύματα */
.ms-message {
  min-height: 28px;
  margin: 12px 0 4px;
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
}

.ms-message.lose {
  color: #ff6b6b;
}

.ms-best {
  min-height: 20px;
  margin: 0 0 12px;
  font-size: 15px;
  color: #b5b5ba;
}

.ms-help {
  max-width: 700px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: #b5b5ba;
}

.ms-help strong {
  color: #d8d8dc;
}

@media (max-width: 600px) {
  .ms-box {
    padding: 18px 12px 22px;
  }
  .ms-title {
    font-size: 25px;
  }
  .ms-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ms-stat {
    min-width: 80px;
    font-size: 19px;
  }
}
